Skip to content

Commit c968b8b

Browse files
committed
add test for ICE: tcx.resolutions(()) is not supported for local crate -Zunpretty=mir on invalid module path with staged_ap
Fixes #108697
1 parent 6c90ac8 commit c968b8b

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// issue: rust-lang/rust#108697
2+
// ICE: tcx.resolutions(()) is not supported for local crate -Zunpretty=mir
3+
// on invalid module path with staged_api
4+
//@ compile-flags: -Zunpretty=mir
5+
6+
#![feature(staged_api)]
7+
#[path = "lol"]
8+
mod foo;
9+
//~^ ERROR couldn't read
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: couldn't read $DIR/lol: No such file or directory (os error 2)
2+
--> $DIR/staged-api-invalid-path-108697.rs:8:1
3+
|
4+
LL | mod foo;
5+
| ^^^^^^^^
6+
7+
error: aborting due to 1 previous error
8+

0 commit comments

Comments
 (0)