Skip to content

Commit a03f15a

Browse files
committed
Bless tests following write/print macros change
1 parent 6f10c0a commit a03f15a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/pretty/dollar-crate.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
// pp-exact:dollar-crate.pp
1010

1111
fn main() {
12-
::std::io::_print(::core::fmt::Arguments::new_v1(&["rust\n"], &[]));
12+
{ ::std::io::_print(::core::fmt::Arguments::new_v1(&["rust\n"], &[])); };
1313
}

src/test/ui/macros/trace-macro.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ LL | println!("Hello, World!");
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
77
= note: expanding `println! { "Hello, World!" }`
8-
= note: to `$crate :: io :: _print($crate :: format_args_nl! ("Hello, World!"))`
8+
= note: to `{ $crate :: io :: _print($crate :: format_args_nl! ("Hello, World!")) ; }`
99

src/test/ui/pattern/usefulness/tuple-struct-nonexhaustive.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ LL | struct Foo(isize, isize);
1212
= note: the matched value is of type `Foo`
1313
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
1414
|
15-
LL ~ Foo(2, b) => println!("{}", b),
15+
LL ~ Foo(2, b) => println!("{}", b)
1616
LL + Foo(_, _) => todo!()
1717
|
1818

0 commit comments

Comments
 (0)