Improve div by zero const eval errors
This commit is contained in:
parent
1f3cb926a2
commit
f66367dacc
7 changed files with 12 additions and 9 deletions
|
|
@ -1134,7 +1134,7 @@ impl<'tcx> TerminatorKind<'tcx> {
|
|||
write!(fmt, "!")?;
|
||||
}
|
||||
write!(fmt, "{:?}, ", cond)?;
|
||||
write!(fmt, "{:?}", msg)?;
|
||||
write!(fmt, "\"{:?}\"", msg)?;
|
||||
|
||||
write!(fmt, ")")
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue