diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-25 13:51:49 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-25 14:33:16 +1000 |
| commit | e37c3674828a75ffdc2b94d9d273e9c02a9ee11f (patch) | |
| tree | 12a729811c4bc54b7f0bde32a81f246cb1efe68b /tests/ui/match | |
| parent | ee43aa356aa228b5cc8da41622855f4f2c07f8ab (diff) | |
| download | rust-e37c3674828a75ffdc2b94d9d273e9c02a9ee11f.tar.gz rust-e37c3674828a75ffdc2b94d9d273e9c02a9ee11f.zip | |
Improve pretty printing of if/else.
By removing some of the over-indenting. AST pretty printing now looks correct. HIR pretty printing is better, but still over-indents some.
Diffstat (limited to 'tests/ui/match')
| -rw-r--r-- | tests/ui/match/issue-82392.stdout | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/match/issue-82392.stdout b/tests/ui/match/issue-82392.stdout index 34d2c7aa2ba..6a68bbdfd56 100644 --- a/tests/ui/match/issue-82392.stdout +++ b/tests/ui/match/issue-82392.stdout @@ -9,9 +9,9 @@ extern crate std; fn main() ({ (if (true as bool) - ({ } as - ()) else if (let Some(a) = - ((Some as - fn(i32) -> Option<i32> {Option::<i32>::Some})((3 as i32)) as - Option<i32>) as bool) ({ } as ()) as ()) - } as ()) + ({ } as + ()) else if (let Some(a) = + ((Some as + fn(i32) -> Option<i32> {Option::<i32>::Some})((3 as i32)) as + Option<i32>) as bool) ({ } as ()) as ()) + } as ()) |
