diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2025-05-07 17:49:11 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2025-06-18 10:20:20 +0200 |
| commit | 58a5ab5a6d3e9cd5312eae7e9c33440b3c402ce8 (patch) | |
| tree | 9e7881d3e202a645283a2a6c55a39e0423990c0b | |
| parent | f608da2ad83dbc215dae197e0c3a39b50e48ea39 (diff) | |
| download | rust-58a5ab5a6d3e9cd5312eae7e9c33440b3c402ce8.tar.gz rust-58a5ab5a6d3e9cd5312eae7e9c33440b3c402ce8.zip | |
Update unpretty tests.
| -rw-r--r-- | tests/ui/unpretty/exhaustive.hir.stdout | 6 | ||||
| -rw-r--r-- | tests/ui/unpretty/flattened-format-args.stdout | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/ui/unpretty/exhaustive.hir.stdout b/tests/ui/unpretty/exhaustive.hir.stdout index c20f123b16e..5d6e3907d75 100644 --- a/tests/ui/unpretty/exhaustive.hir.stdout +++ b/tests/ui/unpretty/exhaustive.hir.stdout @@ -405,8 +405,10 @@ mod expressions { fn expr_format_args() { let expr; format_arguments::new_const(&[]); - format_arguments::new_v1(&[""], - &[format_argument::new_display(&expr)]); + { + super let args = [format_argument::new_display(&expr)]; + format_arguments::new_v1(&[""], &args) + }; } } mod items { diff --git a/tests/ui/unpretty/flattened-format-args.stdout b/tests/ui/unpretty/flattened-format-args.stdout index a5d943281ad..4af82924c7b 100644 --- a/tests/ui/unpretty/flattened-format-args.stdout +++ b/tests/ui/unpretty/flattened-format-args.stdout @@ -10,7 +10,9 @@ fn main() { let x = 1; // Should flatten to println!("a 123 b {x} xyz\n"): { - ::std::io::_print(format_arguments::new_v1(&["a 123 b ", " xyz\n"], - &[format_argument::new_display(&x)])); + ::std::io::_print({ + super let args = [format_argument::new_display(&x)]; + format_arguments::new_v1(&["a 123 b ", " xyz\n"], &args) + }); }; } |
