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#128030 - GuillaumeGomez:rollup-pp031e7, r=Gui…
…llaumeGomez Rollup of 7 pull requests Successful merges: - rust-lang#126450 (Promote Mac Catalyst targets to Tier 2, and ship with rustup) - rust-lang#127177 (Distribute rustc_codegen_cranelift for arm64 macOS) - rust-lang#127583 (Deal with invalid UTF-8 from `gai_strerror`) - rust-lang#127977 (Update wasi-sdk in CI to latest release) - rust-lang#127985 (Migrate `test-benches`, `c-unwind-abi-catch-panic` and `compiler-lookup-paths-2` `run-make` tests to rmake) - rust-lang#128014 (Fix stab display in doc blocks) - rust-lang#128023 (rustdoc: short descriptions cause word-breaks in tables) r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
22 changed files
with
113 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
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
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
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
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
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 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,18 @@ | ||
// A test for calling `C-unwind` functions across foreign function boundaries (FFI). | ||
// This test triggers a panic when calling a foreign function that calls *back* into Rust. | ||
// This catches a panic across an FFI boundary and downcasts it into an integer. | ||
// The Rust code that panics is in the same directory, unlike `c-unwind-abi-catch-lib-panic`. | ||
// See https://github.com/rust-lang/rust/pull/76570 | ||
|
||
//@ ignore-cross-compile | ||
// Reason: the compiled binary is executed | ||
//@ needs-unwind | ||
// Reason: this test exercises panic unwinding | ||
|
||
use run_make_support::{build_native_static_lib, run, rustc}; | ||
|
||
fn main() { | ||
build_native_static_lib("add"); | ||
rustc().input("main.rs").run(); | ||
run("main"); | ||
} |
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,20 @@ | ||
// This test checks that extern crate declarations in Cargo without a corresponding declaration | ||
// in the manifest of a dependency are NOT allowed. The last rustc call does it anyways, which | ||
// should result in a compilation failure. | ||
// See https://github.com/rust-lang/rust/pull/21113 | ||
|
||
use run_make_support::{path, rfs, rust_lib_name, rustc}; | ||
|
||
fn main() { | ||
rfs::create_dir("a"); | ||
rfs::create_dir("b"); | ||
rustc().input("a.rs").run(); | ||
rfs::rename(rust_lib_name("a"), path("a").join(rust_lib_name("a"))); | ||
rustc().input("b.rs").library_search_path("a").run(); | ||
rfs::rename(rust_lib_name("b"), path("b").join(rust_lib_name("b"))); | ||
rustc() | ||
.input("c.rs") | ||
.library_search_path("crate=b") | ||
.library_search_path("dependency=a") | ||
.run_fail(); | ||
} |
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,22 @@ | ||
// #[bench] is a Rust feature to run benchmarks on performance-critical | ||
// code, which previously experienced a runtime panic bug in #103794. | ||
// In order to ensure future breakages of this feature are detected, this | ||
// smoke test was created, using the benchmarking feature with various | ||
// runtime flags. | ||
// See https://github.com/rust-lang/rust/issues/103794 | ||
|
||
//@ ignore-cross-compile | ||
// Reason: the compiled binary is executed | ||
//@ needs-unwind | ||
// Reason: #[bench] and -Zpanic-abort-tests can't be combined | ||
|
||
use run_make_support::{run, run_with_args, rustc}; | ||
|
||
fn main() { | ||
// Smoke-test that #[bench] isn't entirely broken. | ||
rustc().arg("--test").input("smokebench.rs").opt().run(); | ||
run_with_args("smokebench", &["--bench"]); | ||
run_with_args("smokebench", &["--bench", "noiter"]); | ||
run_with_args("smokebench", &["--bench", "yesiter"]); | ||
run("smokebench"); | ||
} |
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
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
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,9 @@ | ||
// This test ensure that `stab` elements if used in doc blocks are not breaking the text layout. | ||
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html" | ||
// We make the window wide enough for the two stabs who are looking into to be on the same line. | ||
set-window-size: (1100, 600) | ||
compare-elements-position: ( | ||
".top-doc .docblock span[data-span='1']", | ||
".top-doc .docblock span[data-span='2']", | ||
["y"], | ||
) |