Skip to content

Commit 2b7fd0e

Browse files
Voultaphertraviscross
authored andcommitted
Explicitly import format_args_nl
1 parent a58596f commit 2b7fd0e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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
@@ -447,7 +447,7 @@ fn test_string_highlighting() {
447447
//- minicore: fmt, assert, asm, concat, panic
448448
macro_rules! println {
449449
($($arg:tt)*) => ({
450-
$crate::io::_print(format_args_nl!($($arg)*));
450+
$crate::io::_print(std::format_args_nl!($($arg)*));
451451
})
452452
}
453453

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)