rust/compiler/rustc_lint/src
Joshua Nelson c1b99f0b90 Don't warn about old rustdoc lint names (temporarily)
Right now, rustdoc users have an unpleasant situation: they can either
use the new tool lint names (`rustdoc::non_autolinks`) or they can use
the old names (`non_autolinks`). If they use the tool lints, they get a
hard error on stable compilers, because rustc rejects all tool names it
doesn't recognize. If they use the old name, they get a warning to
rename the lint to the new name. The only way to compile without
warnings is to add `#[allow(renamed_removed_lints)]`, which defeats the
whole point of the change: we *want* people to switch to the new name.

To avoid people silencing the lint and never migrating to the tool lint,
this avoids warning about the old name, while still allowing you to use
the new name. Once the new `rustdoc` tool name makes it to the stable
channel, we can change these lints to warn again.

This adds the new lint functions `register_alias` and `register_ignored`
- I didn't see an existing way to do this.
2021-03-16 13:13:59 -04:00
..
nonstandard_style mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
array_into_iter.rs Implement rustc side of report-future-incompat 2020-10-30 20:02:14 -04:00
builtin.rs Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
context.rs Don't warn about old rustdoc lint names (temporarily) 2021-03-16 13:13:59 -04:00
early.rs Combine HasAttrs and HasTokens into AstLike 2021-02-27 00:14:13 -05:00
internal.rs Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
late.rs Track HirId when visiting attributes. 2021-03-09 19:27:59 +01:00
levels.rs Remove hir::Crate::attrs. 2021-03-09 19:22:55 +01:00
lib.rs Don't warn about old rustdoc lint names (temporarily) 2021-03-16 13:13:59 -04:00
methods.rs Fix doctest 2020-10-26 18:19:49 -04:00
non_ascii_idents.rs Auto merge of #76541 - matthiaskrgr:unstable_sort, r=davidtwco 2020-09-14 21:43:17 +00:00
non_fmt_panic.rs Rollup merge of #82456 - klensy:or-else, r=estebank 2021-02-26 15:52:31 +01:00
nonstandard_style.rs Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
noop_method_call.rs Warn in doc test 2021-03-03 11:23:33 +01:00
passes.rs ast: Stop using Mod in Crate 2021-02-18 13:07:49 +03:00
redundant_semicolon.rs Lint on redundant trailing semicolon after item 2020-12-29 16:30:02 -05:00
traits.rs Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
types.rs Handle negative literals in cast overflow warning 2021-03-06 17:33:21 +09:00
unused.rs Visit attributes in one go. 2021-03-09 19:09:34 +01:00