Skip to content

Commit

Permalink
Merge adjacent write! invocations
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed May 1, 2018
1 parent f66367d commit 487f7bc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/librustc/mir/mod.rs
Expand Up @@ -1133,10 +1133,7 @@ impl<'tcx> TerminatorKind<'tcx> {
if !expected {
write!(fmt, "!")?;
}
write!(fmt, "{:?}, ", cond)?;
write!(fmt, "\"{:?}\"", msg)?;

write!(fmt, ")")
write!(fmt, "{:?}, \"{:?}\")", cond, msg)
},
FalseEdges { .. } => write!(fmt, "falseEdges"),
FalseUnwind { .. } => write!(fmt, "falseUnwind"),
Expand Down

0 comments on commit 487f7bc

Please sign in to comment.