forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for ICE: tcx.resolutions(()) is not supported for local crat…
…e -Zunpretty=mir on invalid module path with staged_ap Fixes rust-lang#108697
- Loading branch information
1 parent
261823e
commit 24829ee
Showing
2 changed files
with
17 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// issue: rust-lang/rust#108697 | ||
// ICE: tcx.resolutions(()) is not supported for local crate -Zunpretty=mir | ||
// on invalid module path with staged_api | ||
//@ compile-flags: -Zunpretty=mir | ||
|
||
#![feature(staged_api)] | ||
#[path = "lol"] | ||
mod foo; | ||
//~^ ERROR couldn't read |
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,8 @@ | ||
error: couldn't read $DIR/lol: No such file or directory (os error 2) | ||
--> $DIR/staged-api-invalid-path-108697.rs:8:1 | ||
| | ||
LL | mod foo; | ||
| ^^^^^^^^ | ||
|
||
error: aborting due to 1 previous error | ||
|