about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorStuart Cook <Zalathar@users.noreply.github.com>2025-09-09 14:35:04 +1000
committerGitHub <noreply@github.com>2025-09-09 14:35:04 +1000
commitb543b1444b998cabb5d60823ae73dde8e577d10f (patch)
treed2f4eb108490026ab16b8f7c067285306463156f /library
parent598577911f8727e097558e34c1af9fa85b7879ba (diff)
parentedc94e61841506c6957e1ee0ed57a2232fe339c4 (diff)
downloadrust-b543b1444b998cabb5d60823ae73dde8e577d10f.tar.gz
rust-b543b1444b998cabb5d60823ae73dde8e577d10f.zip
Rollup merge of #146314 - cyrgani:hide-fmt-args-nl, r=GuillaumeGomez
mark `format_args_nl!` as `#[doc(hidden)]`

The `#[unstable]` attribute of the macro already says:

> `format_args_nl` is only for internal language use and is subject to change

It does seem plausible to hide it from the `std` docs accordingly.

The PR also removes the single usage of the macro outside of `std` as it does not seem like the macro is actually needed there.
Diffstat (limited to 'library')
-rw-r--r--library/core/src/macros/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/macros/mod.rs b/library/core/src/macros/mod.rs
index ccf41dfb01d..3f58fc448aa 100644
--- a/library/core/src/macros/mod.rs
+++ b/library/core/src/macros/mod.rs
@@ -1017,6 +1017,7 @@ pub(crate) mod builtin {
     )]
     #[allow_internal_unstable(fmt_internals)]
     #[rustc_builtin_macro]
+    #[doc(hidden)]
     #[macro_export]
     macro_rules! format_args_nl {
         ($fmt:expr) => {{ /* compiler built-in */ }};