make UB during CTFE a hard error
This commit is contained in:
parent
1989b9a0b5
commit
3c08cf8e5e
@ -525,6 +525,7 @@ pub fn is_hard_err(&self) -> bool {
|
|||||||
use InterpError::*;
|
use InterpError::*;
|
||||||
match *self {
|
match *self {
|
||||||
MachineStop(ref err) => err.is_hard_err(),
|
MachineStop(ref err) => err.is_hard_err(),
|
||||||
|
InterpError::UndefinedBehavior(_) => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user