rust/library/core
León Orell Valerian Liehr ba420062f1
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)
2025-02-05 05:03:06 +01:00
..
src Rollup merge of #136502 - yotamofek:pr/fmt-from-fn-must-use, r=dtolnay 2025-02-05 05:03:06 +01:00
Cargo.toml Put all coretests in a separate crate 2025-01-26 10:26:36 +00:00