6 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ run-make/issue-33329/Makefile
78
78
run-make/issue-35164/Makefile
79
79
run-make/issue-36710/Makefile
80
80
run-make/issue-37839/Makefile
81
- run-make/issue-40535/Makefile
82
81
run-make/issue-47384/Makefile
83
82
run-make/issue-47551/Makefile
84
83
run-make/issue-68794-textrel-on-minimal-lib/Makefile
Load Diff This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ // In a dependency hierarchy, metadata-only crates could cause an Internal
2
+ // Compiler Error (ICE) due to a compiler bug - not correctly fetching sources for
3
+ // metadata-only crates. This test is a minimal reproduction of a program that triggered
4
+ // this bug, and checks that no ICE occurs.
5
+ // See https://github.com/rust-lang/rust/issues/40535
6
+
7
+ use run_make_support:: rustc;
8
+
9
+ fn main ( ) {
10
+ rustc ( ) . input ( "baz.rs" ) . emit ( "metadata" ) . run ( ) ;
11
+ rustc ( ) . input ( "bar.rs" ) . emit ( "metadata" ) . extern_ ( "baz" , "libbaz.rmeta" ) . run ( ) ;
12
+ // There should be no internal compiler error message.
13
+ rustc ( ) . input ( "foo.rs" ) . emit ( "metadata" ) . extern_ ( "bar" , "libbaz.rmeta" ) . run ( ) . assert_stderr_not_contains ( "unexpectedly panicked" ) ;
14
+ }
0 commit comments