about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcyrgani <ansgar.w.zielke@gmail.com>2025-09-07 23:20:40 +0200
committercyrgani <ansgar.w.zielke@gmail.com>2025-09-08 15:02:25 +0200
commitedc94e61841506c6957e1ee0ed57a2232fe339c4 (patch)
tree59ccd7671b20f9cdcb89e62644db0399bc92fcd6
parentfbd8f95118fff54a2402983d3f446cad9b2f30c5 (diff)
downloadrust-edc94e61841506c6957e1ee0ed57a2232fe339c4.tar.gz
rust-edc94e61841506c6957e1ee0ed57a2232fe339c4.zip
mark `format_args_nl!` as `#[doc(hidden)]`
-rw-r--r--library/core/src/macros/mod.rs1
-rw-r--r--src/librustdoc/html/highlight.rs2
-rw-r--r--src/librustdoc/lib.rs1
3 files changed, 2 insertions, 2 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 */ }};
diff --git a/src/librustdoc/html/highlight.rs b/src/librustdoc/html/highlight.rs
index feafb41dc99..0e06361024b 100644
--- a/src/librustdoc/html/highlight.rs
+++ b/src/librustdoc/html/highlight.rs
@@ -578,7 +578,7 @@ pub(super) fn write_code(
 }
 
 fn write_footer(out: &mut String, playground_button: Option<&str>) {
-    write_str(out, format_args_nl!("</code></pre>{}</div>", playground_button.unwrap_or_default()));
+    write_str(out, format_args!("</code></pre>{}</div>", playground_button.unwrap_or_default()));
 }
 
 /// How a span of text is classified. Mostly corresponds to token kinds.
diff --git a/src/librustdoc/lib.rs b/src/librustdoc/lib.rs
index f62eba4b3c1..9871066b9eb 100644
--- a/src/librustdoc/lib.rs
+++ b/src/librustdoc/lib.rs
@@ -10,7 +10,6 @@
 #![feature(box_patterns)]
 #![feature(debug_closure_helpers)]
 #![feature(file_buffered)]
-#![feature(format_args_nl)]
 #![feature(if_let_guard)]
 #![feature(iter_advance_by)]
 #![feature(iter_intersperse)]