Skip to content

Commit

Permalink
Unrolled build for rust-lang#125222
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
rust-timer authored May 23, 2024
2 parents 5293c6a + ddb81ce commit 5f65461
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ run-make/issue-37839/Makefile
run-make/issue-37893/Makefile
run-make/issue-38237/Makefile
run-make/issue-40535/Makefile
run-make/issue-46239/Makefile
run-make/issue-47384/Makefile
run-make/issue-47551/Makefile
run-make/issue-51671/Makefile
Expand Down
21 changes: 21 additions & 0 deletions tests/codegen/noalias-freeze.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//@ compile-flags: -Copt-level=1

// References returned by a Frozen pointer type
// could be marked as "noalias", which caused miscompilation errors.
// This test runs the most minimal possible code that can reproduce this bug,
// and checks that noalias does not appear.
// See https://github.com/rust-lang/rust/issues/46239

#![crate_type = "lib"]

fn project<T>(x: &(T,)) -> &T { &x.0 }

fn dummy() {}

// CHECK-LABEL: @foo(
// CHECK-NOT: noalias
#[no_mangle]
pub fn foo() {
let f = (dummy as fn(),);
(*project(&f))();
}
6 changes: 0 additions & 6 deletions tests/run-make/issue-46239/Makefile

This file was deleted.

8 changes: 0 additions & 8 deletions tests/run-make/issue-46239/main.rs

This file was deleted.

0 comments on commit 5f65461

Please sign in to comment.