Skip to content

Commit

Permalink
make UB during CTFE a hard error
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 18, 2021
1 parent 1989b9a commit 3c08cf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_middle/src/mir/interpret/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ impl InterpError<'_> {
use InterpError::*;
match *self {
MachineStop(ref err) => err.is_hard_err(),
InterpError::UndefinedBehavior(_) => true,
_ => false,
}
}
Expand Down

0 comments on commit 3c08cf8

Please sign in to comment.