Skip to content

Commit 8441736

Browse files
authored
Unrolled build for #146314
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.
2 parents fefce3c + edc94e6 commit 8441736

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

library/core/src/macros/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ pub(crate) mod builtin {
10171017
)]
10181018
#[allow_internal_unstable(fmt_internals)]
10191019
#[rustc_builtin_macro]
1020+
#[doc(hidden)]
10201021
#[macro_export]
10211022
macro_rules! format_args_nl {
10221023
($fmt:expr) => {{ /* compiler built-in */ }};

src/librustdoc/html/highlight.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ pub(super) fn write_code(
578578
}
579579

580580
fn write_footer(out: &mut String, playground_button: Option<&str>) {
581-
write_str(out, format_args_nl!("</code></pre>{}</div>", playground_button.unwrap_or_default()));
581+
write_str(out, format_args!("</code></pre>{}</div>", playground_button.unwrap_or_default()));
582582
}
583583

584584
/// How a span of text is classified. Mostly corresponds to token kinds.

src/librustdoc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#![feature(box_patterns)]
1111
#![feature(debug_closure_helpers)]
1212
#![feature(file_buffered)]
13-
#![feature(format_args_nl)]
1413
#![feature(if_let_guard)]
1514
#![feature(iter_advance_by)]
1615
#![feature(iter_intersperse)]

0 commit comments

Comments
 (0)