diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-30 16:05:47 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-05-03 12:46:51 +1000 |
| commit | 809e5b5ed17f6cede5945939bb7f10c5282d9b53 (patch) | |
| tree | 79aa19c0528fcecf40cc547e792ceae67ce12790 /tests/ui/unpretty | |
| parent | e1a177bbba2b1297c33e2838f8b2b72ab5f62ecf (diff) | |
| download | rust-809e5b5ed17f6cede5945939bb7f10c5282d9b53.tar.gz rust-809e5b5ed17f6cede5945939bb7f10c5282d9b53.zip | |
Fix some hir pretty-printing over-indenting.
Diffstat (limited to 'tests/ui/unpretty')
| -rw-r--r-- | tests/ui/unpretty/exhaustive.hir.stdout | 61 |
1 files changed, 30 insertions, 31 deletions
diff --git a/tests/ui/unpretty/exhaustive.hir.stdout b/tests/ui/unpretty/exhaustive.hir.stdout index 885135e590d..c1230e597ce 100644 --- a/tests/ui/unpretty/exhaustive.hir.stdout +++ b/tests/ui/unpretty/exhaustive.hir.stdout @@ -173,32 +173,32 @@ mod expressions { fn expr_for_loop() { let x; { - let _t = - match #[lang = "into_iter"](x) { - mut iter => - loop { - match #[lang = "next"](&mut iter) { - #[lang = "None"] {} => break, - #[lang = "Some"] { 0: _ } => { } - } - }, - }; - _t - }; + let _t = + match #[lang = "into_iter"](x) { + mut iter => + loop { + match #[lang = "next"](&mut iter) { + #[lang = "None"] {} => break, + #[lang = "Some"] { 0: _ } => { } + } + }, + }; + _t + }; { - let _t = - match #[lang = "into_iter"](x) { - mut iter => - 'a: - loop { - match #[lang = "next"](&mut iter) { - #[lang = "None"] {} => break, - #[lang = "Some"] { 0: _ } => { } - } - }, - }; - _t - } + let _t = + match #[lang = "into_iter"](x) { + mut iter => + 'a: + loop { + match #[lang = "next"](&mut iter) { + #[lang = "None"] {} => break, + #[lang = "Some"] { 0: _ } => { } + } + }, + }; + _t + } } /// ExprKind::Loop @@ -383,12 +383,11 @@ mod expressions { fn expr_try() { let expr; match #[lang = "branch"](expr) { - #[lang = "Break"] { 0: residual } => - #[allow(unreachable_code)] - return #[lang = "from_residual"](residual), - #[lang = "Continue"] { 0: val } => #[allow(unreachable_code)] - val, - }; + #[lang = "Break"] { 0: residual } => #[allow(unreachable_code)] + return #[lang = "from_residual"](residual), + #[lang = "Continue"] { 0: val } => #[allow(unreachable_code)] + val, + }; } /// ExprKind::Yield fn expr_yield() { yield (); yield true; } |
