about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-10-17 20:47:31 +0200
committerGitHub <noreply@github.com>2024-10-17 20:47:31 +0200
commit372e8c11c27c3a6e017e8f08915b6ca02bcb62c8 (patch)
treed9de2b8094d64bc7ce0628d65c1b6e5590b31be4 /compiler/rustc_codegen_llvm/src
parent405eb4178e1eec5d8487b8790e5cfc7c9ad79c63 (diff)
parent9b5b607fd813071ab85d67cae3d6517e3bd586e8 (diff)
downloadrust-372e8c11c27c3a6e017e8f08915b6ca02bcb62c8.tar.gz
rust-372e8c11c27c3a6e017e8f08915b6ca02bcb62c8.zip
Rollup merge of #131833 - c-ryan747:patch-1, r=Noratrieb
Add `must_use` to `CommandExt::exec`

[CommandExt::exec](https://fburl.com/0qhpo7nu) returns a `std::io::Error` in the case exec fails, but its not currently marked as `must_use` making it easy to accidentally ignore it.

This PR adds the `must_use` attributed here as i think it fits the definition in the guide of [When to add #[must_use]](https://std-dev-guide.rust-lang.org/policy/must-use.html#when-to-add-must_use)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions