forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#110493 - bvanjoi:new_disambiguated_key, r=pet…
…rochenkov fix(resolve): only disambiguate binding key during define - close rust-lang#110164 - discussion: rust-lang#110264 (comment) r? `@petrochenkov`
- Loading branch information
Showing
8 changed files
with
114 additions
and
16 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
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
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
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,19 @@ | ||
use self::*; | ||
//~^ ERROR unresolved import `self::*` | ||
use crate::*; | ||
//~^ ERROR unresolved import `crate::*` | ||
use _::a; | ||
//~^ ERROR expected identifier, found reserved identifier `_` | ||
//~| ERROR unresolved import `_` | ||
use _::*; | ||
//~^ ERROR expected identifier, found reserved identifier `_` | ||
//~| ERROR unresolved import `_` | ||
|
||
fn main() { | ||
use _::a; | ||
//~^ ERROR expected identifier, found reserved identifier `_` | ||
//~| ERROR unresolved import `_` | ||
use _::*; | ||
//~^ ERROR expected identifier, found reserved identifier `_` | ||
//~| ERROR unresolved import `_` | ||
} |
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,71 @@ | ||
error: expected identifier, found reserved identifier `_` | ||
--> $DIR/issue-110164.rs:5:5 | ||
| | ||
LL | use _::a; | ||
| ^ expected identifier, found reserved identifier | ||
|
||
error: expected identifier, found reserved identifier `_` | ||
--> $DIR/issue-110164.rs:8:5 | ||
| | ||
LL | use _::*; | ||
| ^ expected identifier, found reserved identifier | ||
|
||
error: expected identifier, found reserved identifier `_` | ||
--> $DIR/issue-110164.rs:13:9 | ||
| | ||
LL | use _::a; | ||
| ^ expected identifier, found reserved identifier | ||
|
||
error: expected identifier, found reserved identifier `_` | ||
--> $DIR/issue-110164.rs:16:9 | ||
| | ||
LL | use _::*; | ||
| ^ expected identifier, found reserved identifier | ||
|
||
error[E0432]: unresolved import `self::*` | ||
--> $DIR/issue-110164.rs:1:5 | ||
| | ||
LL | use self::*; | ||
| ^^^^^^^ cannot glob-import a module into itself | ||
|
||
error[E0432]: unresolved import `crate::*` | ||
--> $DIR/issue-110164.rs:3:5 | ||
| | ||
LL | use crate::*; | ||
| ^^^^^^^^ cannot glob-import a module into itself | ||
|
||
error[E0432]: unresolved import `_` | ||
--> $DIR/issue-110164.rs:8:5 | ||
| | ||
LL | use _::*; | ||
| ^ maybe a missing crate `_`? | ||
| | ||
= help: consider adding `extern crate _` to use the `_` crate | ||
|
||
error[E0432]: unresolved import `_` | ||
--> $DIR/issue-110164.rs:5:5 | ||
| | ||
LL | use _::a; | ||
| ^ maybe a missing crate `_`? | ||
| | ||
= help: consider adding `extern crate _` to use the `_` crate | ||
|
||
error[E0432]: unresolved import `_` | ||
--> $DIR/issue-110164.rs:13:9 | ||
| | ||
LL | use _::a; | ||
| ^ maybe a missing crate `_`? | ||
| | ||
= help: consider adding `extern crate _` to use the `_` crate | ||
|
||
error[E0432]: unresolved import `_` | ||
--> $DIR/issue-110164.rs:16:9 | ||
| | ||
LL | use _::*; | ||
| ^ maybe a missing crate `_`? | ||
| | ||
= help: consider adding `extern crate _` to use the `_` crate | ||
|
||
error: aborting due to 10 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0432`. |