Skip to content

Commit e31ce50

Browse files
authored
Rollup merge of rust-lang#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 rust-lang#138650, cc `@thaliaarchi` This is also visible in the beta docs. `@rustbot` label +beta-nominated
2 parents 66ccc4f + cfcc47e commit e31ce50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: library/core/src/fmt/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,7 @@ impl<'a> Arguments<'a> {
743743
#[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")]
744744
#[must_use]
745745
#[inline]
746+
#[doc(hidden)]
746747
pub fn as_statically_known_str(&self) -> Option<&'static str> {
747748
let s = self.as_str();
748749
if core::intrinsics::is_val_statically_known(s.is_some()) { s } else { None }

0 commit comments

Comments
 (0)