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.
resolve: Fix regression in resolution of raw keywords in paths
- Loading branch information
1 parent
42ce9b4
commit e80cb20
Showing
7 changed files
with
29 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// This previously triggered an ICE. | ||
|
||
pub(in crate::r#mod) fn main() {} | ||
//~^ ERROR expected module, found unresolved item | ||
//~^ ERROR failed to resolve: maybe a missing crate `r#mod` |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
error[E0577]: expected module, found unresolved item `crate::r#mod` | ||
--> $DIR/issue-61732.rs:3:8 | ||
error[E0433]: failed to resolve: maybe a missing crate `r#mod`? | ||
--> $DIR/issue-61732.rs:3:15 | ||
| | ||
LL | pub(in crate::r#mod) fn main() {} | ||
| ^^^^^^^^^^^^ not a module | ||
| ^^^^^ maybe a missing crate `r#mod`? | ||
|
||
error: Compilation failed, aborting rustdoc | ||
|
||
error: aborting due to 2 previous errors | ||
|
||
For more information about this error, try `rustc --explain E0577`. | ||
For more information about this error, try `rustc --explain E0433`. |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
use extern::foo; //~ ERROR expected identifier, found keyword `extern` | ||
//~| ERROR unresolved import `r#extern` | ||
|
||
fn main() {} |
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,5 @@ | ||
// Regression test for issue #63882. | ||
|
||
type A = crate::r#break; //~ ERROR cannot find type `r#break` in module `crate` | ||
|
||
fn main() {} |
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,9 @@ | ||
error[E0412]: cannot find type `r#break` in module `crate` | ||
--> $DIR/raw-ident-in-path.rs:3:17 | ||
| | ||
LL | type A = crate::r#break; | ||
| ^^^^^^^ not found in `crate` | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0412`. |