Skip to content

Commit bcdfda1

Browse files
Add regression test for #111189
1 parent 234927e commit bcdfda1

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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 numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+

0 commit comments

Comments
 (0)