Skip to content

Commit d6c6ff1

Browse files
committed
Update unpretty tests.
1 parent 28090bc commit d6c6ff1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/ui/unpretty/exhaustive.hir.stdout

+4-2
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,10 @@ mod expressions {
405405
fn expr_format_args() {
406406
let expr;
407407
format_arguments::new_const(&[]);
408-
format_arguments::new_v1(&[""],
409-
&[format_argument::new_display(&expr)]);
408+
{
409+
super let args = [format_argument::new_display(&expr)];
410+
format_arguments::new_v1(&[""], &args)
411+
};
410412
}
411413
}
412414
mod items {

tests/ui/unpretty/flattened-format-args.stdout

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ fn main() {
1010
let x = 1;
1111
// Should flatten to println!("a 123 b {x} xyz\n"):
1212
{
13-
::std::io::_print(format_arguments::new_v1(&["a 123 b ", " xyz\n"],
14-
&[format_argument::new_display(&x)]));
13+
::std::io::_print({
14+
super let args = [format_argument::new_display(&x)];
15+
format_arguments::new_v1(&["a 123 b ", " xyz\n"], &args)
16+
});
1517
};
1618
}

0 commit comments

Comments
 (0)