mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
make Arguments::as_statically_known_str
doc(hidden)
This commit is contained in:
parent
5337252b99
commit
cfcc47ea54
@ -743,6 +743,7 @@ impl<'a> Arguments<'a> {
|
||||
#[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")]
|
||||
#[must_use]
|
||||
#[inline]
|
||||
#[doc(hidden)]
|
||||
pub fn as_statically_known_str(&self) -> Option<&'static str> {
|
||||
let s = self.as_str();
|
||||
if core::intrinsics::is_val_statically_known(s.is_some()) { s } else { None }
|
||||
|
Loading…
Reference in New Issue
Block a user