Fix pretty printing of never pattern match arms.

This commit is contained in:
Nicholas Nethercote 2025-04-24 19:21:04 +10:00
parent 9f497008b0
commit 49ca89dc36
2 changed files with 3 additions and 3 deletions

View file

@ -876,6 +876,7 @@ impl<'a> State<'a> {
}
}
} else {
self.end(); // Close the ibox for the pattern.
self.word(",");
}
self.end(); // Close enclosing cbox.

View file

@ -12,7 +12,6 @@ use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
fn f(x: Result<u32, !>) {
_ = match x { Ok(x) => x, Err(!) , }; }
fn f(x: Result<u32, !>) { _ = match x { Ok(x) => x, Err(!) , }; }
fn main() {}
fn main() {}