rust/src/test/ui/lint-output-format-2.stderr
Josh Holmer 8d49d113e5 Pass correct span when lowering grouped imports
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.
2017-12-26 14:19:49 -05:00

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 | | }
| |_^