forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#125233 - jieyouxu:rollup-76hk8qu, r=jieyouxu
Rollup of 3 pull requests Successful merges: - rust-lang#125213 (Migrate `run-make/static-unwinding` to `rmake`) - rust-lang#125215 (Migrate `run-make/issue64319` to `rmake` and rename) - rust-lang#125221 (Migrate `run-make/issue-28766` to `rmake`) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
12 changed files
with
79 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// When crates had different optimization levels, a bug caused | ||
// incorrect symbol name generations. -Z share-generics could | ||
// also fail to re-export upstream generics on multiple compile | ||
// runs of the same dynamic library. | ||
|
||
// This test repeatedly compiles an rlib and a dylib with these flags | ||
// to check if this bug ever returns. | ||
|
||
// See https://github.com/rust-lang/rust/pull/68277 | ||
// See https://github.com/rust-lang/rust/issues/64319 | ||
//@ ignore-cross-compile | ||
|
||
use run_make_support::rustc; | ||
|
||
fn main() { | ||
rustc().crate_type("rlib").input("foo.rs").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("3").run(); | ||
rustc().crate_type("rlib").input("foo.rs").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("dylib").input("bar.rs").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("rlib").input("foo.rs").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("dylib").input("bar.rs").arg("-Zshare-generics=yes").run(); | ||
rustc().crate_type("rlib").input("foo.rs").arg("-Zshare-generics=yes").run(); | ||
rustc().crate_type("dylib").input("bar.rs").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("rlib").input("foo.rs").arg("-Zshare-generics=yes").run(); | ||
rustc().crate_type("dylib").input("bar.rs").arg("-Zshare-generics=yes").run(); | ||
rustc().crate_type("rlib").input("foo.rs").run(); | ||
rustc().crate_type("dylib").input("bar.rs").run(); | ||
rustc().crate_type("dylib").input("bar.rs").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("dylib").input("bar.rs").arg("-Zshare-generics=yes").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("1").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("1").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("1").arg("-Zshare-generics=yes").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("2").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("2").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("2").arg("-Zshare-generics=yes").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("3").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("3").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("3").arg("-Zshare-generics=yes").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("s").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("s").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("s").arg("-Zshare-generics=yes").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("z").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("z").arg("-Zshare-generics=no").run(); | ||
rustc().crate_type("dylib").input("bar.rs").opt_level("z").arg("-Zshare-generics=yes").run(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// During unwinding, an implementation of Drop is possible to clean up resources. | ||
// This test implements drop in both a main function and its static library. | ||
// If the test succeeds, a Rust program being a static library does not affect Drop implementations. | ||
// See https://github.com/rust-lang/rust/issues/10434 | ||
|
||
//@ ignore-cross-compile | ||
//@ needs-unwind | ||
|
||
use run_make_support::{run, rustc}; | ||
|
||
fn main() { | ||
rustc().input("lib.rs").run(); | ||
rustc().input("main.rs").run(); | ||
run("main"); | ||
} |