rust/library/core/src/fmt
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
..
builders.rs Mark std::fmt::from_fn as #[must_use] 2025-02-03 20:17:27 +00:00
float.rs Access members of FormattingOptions directly instead of via getters/setters 2024-12-05 21:48:36 +01:00
fmt_trait_method_doc.md Document proper usage of fmt::Error and fmt()'s Result. 2024-05-09 17:58:38 -07:00
mod.rs Fix FormattingOptions instantiation with Default 2025-01-24 01:58:33 -05:00
nofloat.rs Refactor floating macro and nofloat panic message 2024-10-15 22:27:06 +09:00
num.rs no unsafe pointer and no overflowing_literals in fmt::Display of integers 2025-02-03 17:44:02 +01:00
rt.rs [generic_assert] Constify methods used by the formatting system 2025-01-05 20:49:04 -03:00