From f5b216d7fcb33e4dd71c98d2150d2740c6d14cfe Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Fri, 3 Oct 2025 22:26:56 +0200 Subject: [PATCH] Revert "Add known issue of let binding to format_args doc" This reverts commit cd7c161294eac4c2cce5c503f1c5b05ce24864a7. --- library/core/src/macros/mod.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs index 3f58fc448aa68..c049d2cbd7030 100644 --- a/library/core/src/macros/mod.rs +++ b/library/core/src/macros/mod.rs @@ -975,14 +975,6 @@ pub(crate) mod builtin { /// let s = fmt::format(format_args!("hello {}", "world")); /// assert_eq!(s, format!("hello {}", "world")); /// ``` - /// - /// # Lifetime limitation - /// - /// Except when no formatting arguments are used, - /// the produced `fmt::Arguments` value borrows temporary values, - /// which means it can only be used within the same expression - /// and cannot be stored for later use. - /// This is a known limitation, see [#92698](https://github.com/rust-lang/rust/issues/92698). #[stable(feature = "rust1", since = "1.0.0")] #[rustc_diagnostic_item = "format_args_macro"] #[allow_internal_unsafe]