Skip to content

Commit 8362b30

Browse files
committed
remove const
1 parent 377594d commit 8362b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ impl<'a> Arguments<'a> {
442442
/// Same as [`Arguments::as_str`], but will only return `Some(s)` if it can be determined at compile time.
443443
#[must_use]
444444
#[inline]
445-
const fn as_const_str(&self) -> Option<&'static str> {
445+
fn as_const_str(&self) -> Option<&'static str> {
446446
let s = self.as_str();
447447
// SAFETY: both cases are valid as the result
448448
if unsafe { core::intrinsics::is_val_statically_known(s.is_some()) } { s } else { None }

0 commit comments

Comments
 (0)