-
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
run-make: annotate library with #[must_use]
and enforce unused_must_use
in rmake.rs
#126197
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
@bors try |
run-make: annotate library with `#[must_use]` and enforce `unused_must_use` in rmake.rs Commits up to 706abf6 are from rust-lang#125752. This PR adds `#[must_use]` annotations to functions of the `run_make_support` library where it makes sense, and adjusts compiletest to compile rmake.rs with `-Dunused_must_use`. The rationale is that it's highly likely that unused `#[must_use]` values in rmake.rs test files are bugs. For example, unused fs/io results are often crucial to the correctness of the test and often unchecked fs/io results allow the test to silently pass where it would've failed if the result was checked. try-job: test-various try-job: x86_64-msvc
@bors rollup=never (likely conflicts with other rmake.rs PRs) |
☀️ Try build successful - checks-actions |
LGTM, feel free to r=me after #125752 is merged. It might also be good to only merge this after the FS wrapper PR. |
@rustbot author |
8d182e3
to
c0ed03b
Compare
☔ The latest upstream changes (presumably #125736) made this pull request unmergeable. Please resolve the merge conflicts. |
c0ed03b
to
5b126ed
Compare
Oh hm this is going to need another test update if the current rollup passes. EDIT: actually it doesn't |
☀️ Test successful - checks-actions |
Finished benchmarking commit (921645c): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)Results (secondary -2.8%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 668.917s -> 671.475s (0.38%) |
This PR contained an odd commit: c8e3eeb didn't change anything. How did that happen? |
Probably some leftover from a rebase. |
This PR adds
#[must_use]
annotations to functions of therun_make_support
library where it makes sense, and adjusts compiletest to compile rmake.rs with-Dunused_must_use
.The rationale is that it's highly likely that unused
#[must_use]
values in rmake.rs test files are bugs. For example, unused fs/io results are often load-bearing to the correctness of the test and often unchecked fs/io results allow the test to silently pass where it would've failed if the result was checked.This PR is best reviewed commit-by-commit.
try-job: test-various
try-job: x86_64-msvc