about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2025-02-05 05:03:06 +0100
committerGitHub <noreply@github.com>2025-02-05 05:03:06 +0100
commitba420062f1277bcf85810b7a5785fe25d501c9c3 (patch)
tree3685116788a0d8c5b289c9d1133fdc2b405f3a5c /compiler/rustc_codegen_llvm/src/builder.rs
parenta6ebb87b3a32f752f8b5cc40f18b83cc233b2d96 (diff)
parent6b016d7e592798610f6313891cbc3ba81906f894 (diff)
downloadrust-ba420062f1277bcf85810b7a5785fe25d501c9c3.tar.gz
rust-ba420062f1277bcf85810b7a5785fe25d501c9c3.zip
Rollup merge of #136502 - yotamofek:pr/fmt-from-fn-must-use, r=dtolnay
Mark `std::fmt::from_fn` as `#[must_use]`

While working on #135494 I managed to shoot my own foot a few times by forgetting to actually use the result of `fmt::from_fn`, so I think a `#[must_use]` could be appropriate!

Didn't have a good message to put in the attr so left it blank, still unstable so we can come back to it I guess?

cc #117729 (and a huge +1 for getting it stabilized, it's very useful IMHO)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions