Skip to content

Commit 25f46fb

Browse files
committed
Explicitly import format_args_nl
1 parent 3699f8d commit 25f46fb

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/librustdoc/html/highlight.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
88
use std::collections::VecDeque;
99
use std::fmt::{Display, Write};
10+
use std::format_args_nl;
1011

1112
use rustc_data_structures::fx::FxIndexMap;
1213
use rustc_lexer::{Cursor, LiteralKind, TokenKind};

src/tools/rust-analyzer/crates/ide/src/syntax_highlighting/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ fn test_string_highlighting() {
445445
//- minicore: fmt, assert, asm, concat, panic
446446
macro_rules! println {
447447
($($arg:tt)*) => ({
448-
$crate::io::_print(format_args_nl!($($arg)*));
448+
$crate::io::_print(std::format_args_nl!($($arg)*));
449449
})
450450
}
451451

tests/ui/hygiene/format-args.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#![allow(non_upper_case_globals)]
44
#![feature(format_args_nl)]
55

6+
use std::format_args_nl;
7+
68
static arg0: () = ();
79

810
fn main() {

0 commit comments

Comments
 (0)