forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong span for nested empty groups
- Loading branch information
1 parent
a0dcecf
commit 0847ac0
Showing
4 changed files
with
50 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/test/ui/owl-import-generates-unused-import-lint.stderr
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
error: unused imports: `*`, `Foo`, `baz::{}`, `foobar::*` | ||
--> $DIR/use-nested-groups-unused-imports.rs:26:11 | ||
| | ||
26 | use foo::{Foo, bar::{baz::{}, foobar::*}, *}; | ||
| ^^^ ^^^^^^^ ^^^^^^^^^ ^ | ||
| | ||
note: lint level defined here | ||
--> $DIR/use-nested-groups-unused-imports.rs:13:9 | ||
| | ||
13 | #![deny(unused_imports)] | ||
| ^^^^^^^^^^^^^^ | ||
|
||
error: unused import: `*` | ||
--> $DIR/use-nested-groups-unused-imports.rs:28:24 | ||
| | ||
28 | use foo::bar::baz::{*, *}; | ||
| ^ | ||
|
||
error: unused import: `use foo::{};` | ||
--> $DIR/use-nested-groups-unused-imports.rs:30:1 | ||
| | ||
30 | use foo::{}; | ||
| ^^^^^^^^^^^^ | ||
|
||
error: aborting due to 3 previous errors | ||
|