diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-24 19:21:04 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-24 19:26:13 +1000 |
| commit | 49ca89dc36be65872e721bde11ac8efd3ebdd7a1 (patch) | |
| tree | fde596e4e8a851d1b66e3c81f80d661543409b3d /compiler/rustc_ast_pretty | |
| parent | 9f497008b0d17cf6b0036eb06eff94fa3850e840 (diff) | |
| download | rust-49ca89dc36be65872e721bde11ac8efd3ebdd7a1.tar.gz rust-49ca89dc36be65872e721bde11ac8efd3ebdd7a1.zip | |
Fix pretty printing of never pattern match arms.
Diffstat (limited to 'compiler/rustc_ast_pretty')
| -rw-r--r-- | compiler/rustc_ast_pretty/src/pprust/state/expr.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs index df848a26d39..4aeb7c00995 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state/expr.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state/expr.rs @@ -876,6 +876,7 @@ impl<'a> State<'a> { } } } else { + self.end(); // Close the ibox for the pattern. self.word(","); } self.end(); // Close enclosing cbox. |
