]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/unknown-renamed-lints.rs
Auto merge of #84206 - Dylan-DPC:rollup-knl2jgq, r=Dylan-DPC
[rust.git] / src / test / rustdoc-ui / unknown-renamed-lints.rs
1 #![deny(unknown_lints)]
2 //~^ NOTE lint level is defined
3 #![deny(renamed_and_removed_lints)]
4 //~^ NOTE lint level is defined
5 #![deny(x)]
6 //~^ ERROR unknown lint
7 #![deny(rustdoc::x)]
8 //~^ ERROR unknown lint: `rustdoc::x`
9 #![deny(intra_doc_link_resolution_failure)]
10 //~^ ERROR renamed to `rustdoc::broken_intra_doc_links`
11 #![deny(non_autolinks)]
12 //~^ ERROR renamed to `rustdoc::bare_urls`
13 #![deny(rustdoc::non_autolinks)]
14 //~^ ERROR renamed to `rustdoc::bare_urls`
15
16 #![deny(private_doc_tests)]
17 // FIXME: the old names for rustdoc lints should warn by default once `rustdoc::` makes it to the
18 // stable channel.
19
20 #![deny(rustdoc)]
21 //~^ ERROR removed: use `rustdoc::all` instead
22
23 // Explicitly don't try to handle this case, it was never valid
24 #![deny(rustdoc::intra_doc_link_resolution_failure)]
25 //~^ ERROR unknown lint