8d49d113e5
Solves incorrect diagnostics for unused or deprecated imports. Closes #46576. Deprecated imports had an existing test which asserted the incorrect span. That test has been corrected as part of this commit.
25 lines
674 B
Plaintext
25 lines
674 B
Plaintext
warning: use of deprecated item 'lint_output_format::foo': text
|
|
--> $DIR/lint-output-format-2.rs:20:26
|
|
|
|
|
20 | use lint_output_format::{foo, bar};
|
|
| ^^^
|
|
|
|
|
= note: #[warn(deprecated)] on by default
|
|
|
|
warning: use of deprecated item 'lint_output_format::foo': text
|
|
--> $DIR/lint-output-format-2.rs:25:14
|
|
|
|
|
25 | let _x = foo();
|
|
| ^^^
|
|
|
|
error: compilation successful
|
|
--> $DIR/lint-output-format-2.rs:24:1
|
|
|
|
|
24 | / fn main() { //~ ERROR: compilation successful
|
|
25 | | let _x = foo();
|
|
26 | | //~^ WARNING use of deprecated item 'lint_output_format::foo': text
|
|
27 | | let _y = bar();
|
|
28 | | }
|
|
| |_^
|
|
|