]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_parse/src/lexer/unicode_chars.rs
Rollup merge of #106823 - m-ou-se:format-args-as-str-guarantees, r=dtolnay
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Wed, 25 Jan 2023 11:31:42 +0000 (17:01 +0530)
committerGitHub <noreply@github.com>
Wed, 25 Jan 2023 11:31:42 +0000 (17:01 +0530)
commit0c53b215de0c57833756300e81ac9c5f84a541a3
tree2ce5f0b6bd7dbe2a93ded41509cbeef83c9723b2
parent9e6873f7888c64bbded5de761489c0a0f0df826b
parenta37b4842220a647902a25fcfe68a7d52cda056ad
Rollup merge of #106823 - m-ou-se:format-args-as-str-guarantees, r=dtolnay

Allow fmt::Arguments::as_str() to return more Some(_).

This adjusts the documentation to allow optimization of format_args!() to be visible through fmt::Arguments::as_str().

This allows for future changes like https://github.com/rust-lang/rust/pull/106824.
library/core/src/fmt/mod.rs