Improve div by zero const eval errors

This commit is contained in:
Oliver Schneider 2018-04-28 13:35:35 +02:00 committed by Oliver Schneider
parent 1f3cb926a2
commit f66367dacc
No known key found for this signature in database
GPG key ID: 1D5CB4FC597C3004
7 changed files with 12 additions and 9 deletions

View file

@ -1134,7 +1134,7 @@ impl<'tcx> TerminatorKind<'tcx> {
write!(fmt, "!")?;
}
write!(fmt, "{:?}, ", cond)?;
write!(fmt, "{:?}", msg)?;
write!(fmt, "\"{:?}\"", msg)?;
write!(fmt, ")")
},