Skip to content

Commit b391527

Browse files
committed
rewrite and rename issue-46239
1 parent ddba1dc commit b391527

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ run-make/issue-37839/Makefile
112112
run-make/issue-37893/Makefile
113113
run-make/issue-38237/Makefile
114114
run-make/issue-40535/Makefile
115-
run-make/issue-46239/Makefile
116115
run-make/issue-47384/Makefile
117116
run-make/issue-47551/Makefile
118117
run-make/issue-51671/Makefile

tests/run-make/issue-46239/Makefile

-6
This file was deleted.
File renamed without changes.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// In the rustc_trans crate, references returned by a Frozen pointer type
2+
// could mark them as "noalias", which caused miscompilation errors.
3+
// This test runs the most minimal possible code that can reproduce this bug,
4+
// and checks that compilation remains successful.
5+
// See https://github.com/rust-lang/rust/issues/46239
6+
7+
//@ ignore-cross-compile
8+
9+
use run_make_support::{run, rustc};
10+
11+
fn main() {
12+
rustc().input("main.rs").opt-level("1").run();
13+
run("main");
14+
}

0 commit comments

Comments
 (0)