Fix pretty printing of never pattern match arms.
This commit is contained in:
parent
9f497008b0
commit
49ca89dc36
2 changed files with 3 additions and 3 deletions
|
|
@ -876,6 +876,7 @@ impl<'a> State<'a> {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
self.end(); // Close the ibox for the pattern.
|
||||
self.word(",");
|
||||
}
|
||||
self.end(); // Close enclosing cbox.
|
||||
|
|
|
|||
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue