]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/passes/private_items_doc_tests.rs
Add a `parent_module_from_def_id` query
[rust.git] / src / librustdoc / passes / private_items_doc_tests.rs
index 5560ebed9ae69a0be4ef0de006399f96b9e5dbc1..aec5a6bd4e221f8745ce722bff640007ff0cb671 100644 (file)
@@ -5,7 +5,7 @@
 
 pub const CHECK_PRIVATE_ITEMS_DOC_TESTS: Pass = Pass {
     name: "check-private-items-doc-tests",
-    pass: check_private_items_doc_tests,
+    run: check_private_items_doc_tests,
     description: "check private items doc tests",
 };
 
@@ -15,9 +15,7 @@ struct PrivateItemDocTestLinter<'a, 'tcx> {
 
 impl<'a, 'tcx> PrivateItemDocTestLinter<'a, 'tcx> {
     fn new(cx: &'a DocContext<'tcx>) -> Self {
-        PrivateItemDocTestLinter {
-            cx,
-        }
+        PrivateItemDocTestLinter { cx }
     }
 }