Skip to content

Commit c7535d1

Browse files
committed
Update comments
Note that the FIXME was removed because this can't be fixed, `register_renamed` calls LintId::of and there's no LintId for rustdoc lints when rustc is running.
1 parent 0517ea7 commit c7535d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_lint/src/lib.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
325325

326326
// These were moved to tool lints, but rustc still sees them when compiling normally, before
327327
// tool lints are registered, so `check_tool_name_for_backwards_compat` doesn't work. Use
328-
// `register_renamed` explicitly.
328+
// `register_removed` explicitly.
329329
const RUSTDOC_LINTS: &[&str] = &[
330330
"broken_intra_doc_links",
331331
"private_intra_doc_links",
@@ -337,7 +337,6 @@ fn register_builtins(store: &mut LintStore, no_interleave_lints: bool) {
337337
"non_autolinks",
338338
];
339339
for rustdoc_lint in RUSTDOC_LINTS {
340-
// FIXME: maybe we could get `register_renamed` to work for tool lints?
341340
store.register_removed(rustdoc_lint, &format!("use `rustdoc::{}` instead", rustdoc_lint));
342341
}
343342
store.register_removed(

0 commit comments

Comments
 (0)