Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5f65461

Browse files
authored
Unrolled build for rust-lang#125222
Rollup merge of rust-lang#125222 - Oneirical:fifth, r=jieyouxu Migrate `run-make/issue-46239` to `rmake` Part of rust-lang#121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html).
2 parents 5293c6a + ddb81ce commit 5f65461

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
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
@@ -111,7 +111,6 @@ run-make/issue-37839/Makefile
111111
run-make/issue-37893/Makefile
112112
run-make/issue-38237/Makefile
113113
run-make/issue-40535/Makefile
114-
run-make/issue-46239/Makefile
115114
run-make/issue-47384/Makefile
116115
run-make/issue-47551/Makefile
117116
run-make/issue-51671/Makefile

tests/codegen/noalias-freeze.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//@ compile-flags: -Copt-level=1
2+
3+
// References returned by a Frozen pointer type
4+
// could be marked as "noalias", which caused miscompilation errors.
5+
// This test runs the most minimal possible code that can reproduce this bug,
6+
// and checks that noalias does not appear.
7+
// See https://github.com/rust-lang/rust/issues/46239
8+
9+
#![crate_type = "lib"]
10+
11+
fn project<T>(x: &(T,)) -> &T { &x.0 }
12+
13+
fn dummy() {}
14+
15+
// CHECK-LABEL: @foo(
16+
// CHECK-NOT: noalias
17+
#[no_mangle]
18+
pub fn foo() {
19+
let f = (dummy as fn(),);
20+
(*project(&f))();
21+
}

tests/run-make/issue-46239/Makefile

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/run-make/issue-46239/main.rs

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)