-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port repr128-dwarf run-make test to rmake #124280
Conversation
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. Some changes occurred in src/tools/compiletest cc @jieyouxu The run-make-support library was changed cc @jieyouxu Some changes occurred in run-make tests. cc @jieyouxu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me in general, only thing is I'm not 100% sure if we want to make every rmake.rs be edition 2021 by default. I think we can experiment with edition 2021 by default, and revert / check that individual rmake.rs can override with //@ edition: 2015
if for some reason an earlier edition is required.
@@ -3824,6 +3824,7 @@ impl<'test> TestCx<'test> { | |||
.arg(format!("-Ldependency={}", &support_lib_deps_deps.to_string_lossy())) | |||
.arg("--extern") | |||
.arg(format!("run_make_support={}", &support_lib_path.to_string_lossy())) | |||
.arg("--edition=2021") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, do we want to force edition 2021 for every rmake test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see why not. The rmake
test files are “developer-facing” after all unlike the Rust files found in e.g. tests/ui
. They are test runners, not “test subjects”. Lol, lacking the proper words rn. Similarly, compiler/
/ rustc_*
crates all default to Rust 2021.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sense yeah, I was just wondering if where was any weird edge cases I have not considered
Thanks for the PR! @bors r+ |
…youxu Port repr128-dwarf run-make test to rmake This PR ports the repr128-dwarf run-make test to rmake, using the `gimli` crate instead of the `llvm-dwarfdump` command. Note that this PR changes `rmake.rs` files to be compiled with the 2021 edition (previously no edition was passed to `rustc`, meaning they were compiled with the 2015 edition). This means that `panic!("{variable}")` will now work as expected in `rmake.rs` files (there's already a usage in the [wasm-symbols-not-exported test](https://github.com/rust-lang/rust/blob/aca749eefceaed0cda19a7ec5e472fce9387bc00/tests/run-make/wasm-symbols-not-exported/rmake.rs#L34) that this will fix). Tracking issue: rust-lang#121876
Rollup of 6 pull requests Successful merges: - rust-lang#122500 (delegation: Support renaming, and async, const, extern "ABI" and C-variadic functions) - rust-lang#123316 (Test `#[unix_sigpipe = "inherit"]` with both `SIG_DFL` and `SIG_IGN`) - rust-lang#124136 (Provide more context and suggestions in borrowck errors involving closures) - rust-lang#124280 (Port repr128-dwarf run-make test to rmake) - rust-lang#124282 (windows fill_utf16_buf: explain the expected return value) - rust-lang#124308 (Add diagnostic item for `std::iter::Enumerate`) r? `@ghost` `@rustbot` modify labels: rollup
Failed in rollup: #124316 (comment) |
8c64a56
to
c2fd6ed
Compare
I've fixed the test to handle Mach-O's split debuginfo. @rustbot review |
Thanks! @bors r+ rollup |
Rollup of 4 pull requests Successful merges: - rust-lang#124280 (Port repr128-dwarf run-make test to rmake) - rust-lang#124299 (Add test for issue 106269) - rust-lang#124553 (Write `git-commit-{sha,info}` for Cargo in source tarballs) - rust-lang#124561 (Add `normalize()` in run-make `Diff` type) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#124280 - beetrees:repr128-test-rmake, r=jieyouxu Port repr128-dwarf run-make test to rmake This PR ports the repr128-dwarf run-make test to rmake, using the `gimli` crate instead of the `llvm-dwarfdump` command. Note that this PR changes `rmake.rs` files to be compiled with the 2021 edition (previously no edition was passed to `rustc`, meaning they were compiled with the 2015 edition). This means that `panic!("{variable}")` will now work as expected in `rmake.rs` files (there's already a usage in the [wasm-symbols-not-exported test](https://github.com/rust-lang/rust/blob/aca749eefceaed0cda19a7ec5e472fce9387bc00/tests/run-make/wasm-symbols-not-exported/rmake.rs#L34) that this will fix). Tracking issue: rust-lang#121876
This PR ports the repr128-dwarf run-make test to rmake, using the
gimli
crate instead of thellvm-dwarfdump
command.Note that this PR changes
rmake.rs
files to be compiled with the 2021 edition (previously no edition was passed torustc
, meaning they were compiled with the 2015 edition). This means thatpanic!("{variable}")
will now work as expected inrmake.rs
files (there's already a usage in the wasm-symbols-not-exported test that this will fix).Tracking issue: #121876