diff options
| author | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-02-14 20:44:46 -0500 |
|---|---|---|
| committer | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-02-20 01:11:16 -0500 |
| commit | 8362b30bba773d6bbc51c428f43f732f7665c4bd (patch) | |
| tree | 4966a501ed690fb07d3c3a294c57fe70aa099424 | |
| parent | 377594dcedf812dab65adfe2f892a5438b780731 (diff) | |
| download | rust-8362b30bba773d6bbc51c428f43f732f7665c4bd.tar.gz rust-8362b30bba773d6bbc51c428f43f732f7665c4bd.zip | |
remove const
| -rw-r--r-- | library/core/src/fmt/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index a1513515c09..47ebf835053 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -442,7 +442,7 @@ impl<'a> Arguments<'a> { /// Same as [`Arguments::as_str`], but will only return `Some(s)` if it can be determined at compile time. #[must_use] #[inline] - const fn as_const_str(&self) -> Option<&'static str> { + fn as_const_str(&self) -> Option<&'static str> { let s = self.as_str(); // SAFETY: both cases are valid as the result if unsafe { core::intrinsics::is_val_statically_known(s.is_some()) } { s } else { None } |
