about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-04-05 13:18:17 +1100
committerGitHub <noreply@github.com>2025-04-05 13:18:17 +1100
commite31ce50698b40f36056f1e13f7f320ebdb38a102 (patch)
treef41496f629002b9a8f91afa2b50206a7d485e72f
parent66ccc4fe28785e4e7d6f3b59eadbffd5296f8ad7 (diff)
parentcfcc47ea540750dac30010edb42c4fa21efd577a (diff)
downloadrust-e31ce50698b40f36056f1e13f7f320ebdb38a102.tar.gz
rust-e31ce50698b40f36056f1e13f7f320ebdb38a102.zip
Rollup merge of #139389 - mejrs:hidden, r=workingjubilee
make `Arguments::as_statically_known_str` doc(hidden)

Fixes `as_statically_known_str` being [visible](https://doc.rust-lang.org/nightly/std/fmt/struct.Arguments.html#method.as_statically_known_str) ([Rendered](https://github.com/user-attachments/assets/45482d9f-2ec5-4610-be9c-b231bd2850c6))

This snuck in with https://github.com/rust-lang/rust/pull/138650, cc `@thaliaarchi`

This is also visible in the beta docs.

`@rustbot` label +beta-nominated
-rw-r--r--library/core/src/fmt/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs
index 30fd2d7815f..0c8e1495c62 100644
--- a/library/core/src/fmt/mod.rs
+++ b/library/core/src/fmt/mod.rs
@@ -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 }