Skip to content

Commit

Permalink
Rollup merge of rust-lang#125221 - Oneirical:fourth, r=jieyouxu
Browse files Browse the repository at this point in the history
Migrate `run-make/issue-28766` 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
jieyouxu authored May 17, 2024
2 parents d7498c2 + e9edced commit 650bbb5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 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 @@ -103,7 +103,6 @@ run-make/issue-25581/Makefile
run-make/issue-26006/Makefile
run-make/issue-26092/Makefile
run-make/issue-28595/Makefile
run-make/issue-28766/Makefile
run-make/issue-30063/Makefile
run-make/issue-33329/Makefile
run-make/issue-35164/Makefile
Expand Down
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions tests/run-make/box-struct-no-segfault/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// The crate "foo" tied to this test executes a very specific function,
// which involves boxing an instance of the struct Foo. However,
// this once caused a segmentation fault in cargo release builds due to an LLVM
// incorrect assertion.
// This test checks that this bug does not resurface.
// See https://github.com/rust-lang/rust/issues/28766

use run_make_support::{rustc, tmp_dir};

fn main() {
rustc().opt().input("foo.rs").run();
rustc().opt().library_search_path(tmp_dir()).input("main.rs").run();
}
5 changes: 0 additions & 5 deletions tests/run-make/issue-28766/Makefile

This file was deleted.

0 comments on commit 650bbb5

Please sign in to comment.