rust/src/librustdoc
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
..
clean Auto merge of #82960 - camelid:masked_crates, r=jyn514 2021-03-10 21:54:06 +00:00
doctest Fix injected errors when running doctests on a crate named after a keyword 2021-02-11 17:16:43 -05:00
formats Remove masked_crates from clean::Crate 2021-03-09 20:02:52 -08:00
html Auto merge of #83094 - GuillaumeGomez:crates-js-location, r=Nemo157 2021-03-14 09:16:23 +00:00
json Auto merge of #82356 - camelid:render-cleanup, r=GuillaumeGomez 2021-03-09 04:33:43 +00:00
passes Rollup merge of #82402 - jyn514:module-cache-refcell, r=GuillaumeGomez 2021-03-07 10:41:11 +09:00
theme Add test to check if minified theme are handled correctly 2020-02-12 15:49:39 +01:00
Cargo.toml Bump tracing-tree dependency 2021-03-09 16:44:51 +00:00
config.rs Rollup merge of #82803 - jyn514:unversioned-files, r=GuillaumeGomez 2021-03-07 10:41:18 +09:00
core.rs Add rustc_interface::interface::Config::parse_sess_created 2021-03-15 18:24:58 +08:00
docfs.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
doctest.rs Add rustc_interface::interface::Config::parse_sess_created 2021-03-15 18:24:58 +08:00
doctree.rs Move StructType to clean, remove it from Unions, make JSON output whether something is a union 2021-01-20 16:46:34 -05:00
error.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
externalfiles.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
fold.rs Put clean::Trait extra information into a new struct to make it more coherent 2021-02-23 21:58:16 +01:00
lib.rs Add an unstable option to print all unversioned files 2021-03-05 15:31:30 -05:00
lint.rs Don't warn about old rustdoc lint names (temporarily) 2021-03-16 13:13:59 -04:00
markdown.rs Make all rustdoc functions and structs crate-private 2020-11-15 11:21:12 -05:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
theme.rs Replace under-used ImplPolarity enum with a boolean 2021-01-09 14:59:37 +01:00
visit_ast.rs Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
visit_lib.rs Remove the dummy cache in DocContext 2021-03-01 00:30:30 -05:00

For more information about how librustdoc works, see the rustc dev guide.