]> git.lizzy.rs Git - rust.git/commitdiff
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)
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.

1  2 
library/core/src/fmt/mod.rs

Simple merge