Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e89570f

Browse files
committedJun 19, 2024
rewrite and rename issue-40535 to rmake
1 parent fc4541b commit e89570f

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

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ run-make/issue-33329/Makefile
7878
run-make/issue-35164/Makefile
7979
run-make/issue-36710/Makefile
8080
run-make/issue-37839/Makefile
81-
run-make/issue-40535/Makefile
8281
run-make/issue-47384/Makefile
8382
run-make/issue-47551/Makefile
8483
run-make/issue-68794-textrel-on-minimal-lib/Makefile

‎tests/run-make/issue-40535/Makefile

-13
This file was deleted.
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)
Failed to load comments.