File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
tests/rustdoc-ui/intra-doc Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ // Regression test for <https://github.com/rust-lang/rust/issues/111189>.
2+ // This test ensures that it doesn't crash.
3+
4+ #![ deny( warnings) ]
5+
6+ /// #[rustfmt::skip]
7+ //~^ ERROR unresolved link to `rustfmt::skip`
8+ /// #[clippy::whatever]
9+ //~^ ERROR unresolved link to `clippy::whatever`
10+ pub fn foo ( ) { }
Original file line number Diff line number Diff line change 1+ error: unresolved link to `rustfmt::skip`
2+ --> $DIR/issue-111189-resolution-ice.rs:6:7
3+ |
4+ LL | /// #[rustfmt::skip]
5+ | ^^^^^^^^^^^^^ no item named `rustfmt` in scope
6+ |
7+ note: the lint level is defined here
8+ --> $DIR/issue-111189-resolution-ice.rs:4:9
9+ |
10+ LL | #![deny(warnings)]
11+ | ^^^^^^^^
12+ = note: `#[deny(rustdoc::broken_intra_doc_links)]` implied by `#[deny(warnings)]`
13+
14+ error: unresolved link to `clippy::whatever`
15+ --> $DIR/issue-111189-resolution-ice.rs:8:7
16+ |
17+ LL | /// #[clippy::whatever]
18+ | ^^^^^^^^^^^^^^^^ no item named `clippy` in scope
19+
20+ error: aborting due to 2 previous errors
21+
You can’t perform that action at this time.
0 commit comments