-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Migrate and rename issue-47551
, issue-35164
and issue-69368
run-make
tests to rmake
#127624
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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.
File renamed without changes.
This file contains hidden or 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 @@ | ||
// Test that previously triggered a linker failure with root cause | ||
// similar to one found in the issue #69368. | ||
// | ||
// The crate that provides oom lang item is missing some other lang | ||
// items. Necessary to prevent the use of start-group / end-group. | ||
// | ||
// The weak lang items are defined in a separate compilation units, | ||
// so that linker could omit them if not used. | ||
// | ||
// The crates that need those weak lang items are dependencies of | ||
// crates that provide them. | ||
// See https://github.com/rust-lang/rust/issues/69371 | ||
|
||
use run_make_support::rustc; | ||
|
||
fn main() { | ||
rustc().input("a.rs").run(); | ||
rustc().input("b.rs").run(); | ||
rustc().input("c.rs").run(); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains hidden or 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 @@ | ||
// The byte positions in json format error logging used to have a small, difficult | ||
// to predict offset. This was changed to be the top of the file every time in #42973, | ||
// and this test checks that the measurements appearing in the standard error are correct. | ||
// See https://github.com/rust-lang/rust/issues/35164 | ||
|
||
use run_make_support::rustc; | ||
|
||
fn main() { | ||
rustc() | ||
.input("main.rs") | ||
.error_format("json") | ||
.run() | ||
.assert_stderr_contains(r#""byte_start":23"#) | ||
.assert_stderr_contains(r#""byte_end":29"#); | ||
} |
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,23 @@ | ||
// The gcc driver is supposed to add a terminator to link files, and the rustc | ||
// driver previously failed to do this, resulting in a segmentation fault | ||
// with an older version of LLVM. This test checks that the terminator is present | ||
// after the fix in #85395. | ||
// See https://github.com/rust-lang/rust/issues/47551 | ||
|
||
//@ only-linux | ||
// Reason: the ZERO terminator is unique to the Linux architecture. | ||
//@ ignore-32bit | ||
// Reason: the usage of a large array in the test causes an out-of-memory | ||
// error on 32 bit systems. | ||
|
||
use run_make_support::{bin_name, llvm_objdump, run, rustc}; | ||
|
||
fn main() { | ||
rustc().input("eh_frame-terminator.rs").run(); | ||
run("eh_frame-terminator").assert_stdout_contains("1122334455667788"); | ||
llvm_objdump() | ||
.arg("--dwarf=frames") | ||
.input(bin_name("eh_frame-terminator")) | ||
.run() | ||
.assert_stdout_contains("ZERO terminator"); | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.