]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/lib.rs
Rename `rustdoc` to `rustdoc::all`
[rust.git] / compiler / rustc_lint / src / lib.rs
index a15a972cce7214c5b0f8473e8cae96ac8bef0558..94ca0df818b9ff0ecaf6af1648adb6495df42fc0 100644 (file)
@@ -325,7 +325,7 @@ macro_rules! register_passes {
 
     // These were moved to tool lints, but rustc still sees them when compiling normally, before
     // tool lints are registered, so `check_tool_name_for_backwards_compat` doesn't work. Use
-    // `register_renamed` explicitly.
+    // `register_removed` explicitly.
     const RUSTDOC_LINTS: &[&str] = &[
         "broken_intra_doc_links",
         "private_intra_doc_links",
@@ -337,13 +337,13 @@ macro_rules! register_passes {
         "non_autolinks",
     ];
     for rustdoc_lint in RUSTDOC_LINTS {
-        // FIXME: maybe we could get `register_renamed` to work for tool lints?
         store.register_removed(rustdoc_lint, &format!("use `rustdoc::{}` instead", rustdoc_lint));
     }
     store.register_removed(
         "intra_doc_link_resolution_failure",
         "use `rustdoc::broken_intra_doc_links` instead",
     );
+    store.register_removed("rustdoc", "use `rustdoc::all` instead");
 
     store.register_removed("unknown_features", "replaced by an error");
     store.register_removed("unsigned_negation", "replaced by negate_unsigned feature gate");