make UB during CTFE a hard error
This commit is contained in:
parent
1989b9a0b5
commit
3c08cf8e5e
1 changed files with 1 additions and 0 deletions
|
@ -525,6 +525,7 @@ impl InterpError<'_> {
|
|||
use InterpError::*;
|
||||
match *self {
|
||||
MachineStop(ref err) => err.is_hard_err(),
|
||||
InterpError::UndefinedBehavior(_) => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue