Skip to content

Commit b52c148

Browse files
committed
rewrite and rename issue-40535 to rmake
1 parent e340e7b commit b52c148

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ run-make/issue-33329/Makefile
6969
run-make/issue-35164/Makefile
7070
run-make/issue-36710/Makefile
7171
run-make/issue-37839/Makefile
72-
run-make/issue-40535/Makefile
7372
run-make/issue-47384/Makefile
7473
run-make/issue-47551/Makefile
7574
run-make/issue-68794-textrel-on-minimal-lib/Makefile

tests/run-make/issue-40535/Makefile

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

Comments
 (0)