We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 377594d commit 8362b30Copy full SHA for 8362b30
library/core/src/fmt/mod.rs
@@ -442,7 +442,7 @@ impl<'a> Arguments<'a> {
442
/// Same as [`Arguments::as_str`], but will only return `Some(s)` if it can be determined at compile time.
443
#[must_use]
444
#[inline]
445
- const fn as_const_str(&self) -> Option<&'static str> {
+ fn as_const_str(&self) -> Option<&'static str> {
446
let s = self.as_str();
447
// SAFETY: both cases are valid as the result
448
if unsafe { core::intrinsics::is_val_statically_known(s.is_some()) } { s } else { None }
0 commit comments