about summary refs log tree commit diff
path: root/compiler/rustc_target/src/asm/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-13 07:26:21 +0000
committerbors <bors@rust-lang.org>2024-06-13 07:26:21 +0000
commit921645c737f1d6d107a0a10ca5ee129d364dcd7a (patch)
tree0a6893f08ea9007b677b95f140eeff76ee5670c0 /compiler/rustc_target/src/asm/mod.rs
parent56e112afb6bd92698fca44a83b4f116b3e51552c (diff)
parent5b126ed35857154274fe7f2e69c19b7c74a5fc30 (diff)
downloadrust-921645c737f1d6d107a0a10ca5ee129d364dcd7a.tar.gz
rust-921645c737f1d6d107a0a10ca5ee129d364dcd7a.zip
Auto merge of #126197 - jieyouxu:rmake-must-use, r=Kobzol
run-make: annotate library with `#[must_use]` and enforce `unused_must_use` in rmake.rs

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 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
Diffstat (limited to 'compiler/rustc_target/src/asm/mod.rs')
0 files changed, 0 insertions, 0 deletions