@@ -319,8 +319,6 @@ impl fmt::Debug for InvalidProgramInfo<'_> {
319
319
pub enum UndefinedBehaviorInfo {
320
320
/// Free-form case. Only for errors that are never caught!
321
321
Ub ( String ) ,
322
- /// Free-form case for experimental UB. Only for errors that are never caught!
323
- UbExperimental ( String ) ,
324
322
/// Unreachable code was executed.
325
323
Unreachable ,
326
324
/// An enum discriminant was set to a value which was outside the range of valid values.
@@ -381,7 +379,7 @@ impl fmt::Debug for UndefinedBehaviorInfo {
381
379
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
382
380
use UndefinedBehaviorInfo :: * ;
383
381
match self {
384
- Ub ( msg) | UbExperimental ( msg ) => write ! ( f, "{}" , msg) ,
382
+ Ub ( msg) => write ! ( f, "{}" , msg) ,
385
383
Unreachable => write ! ( f, "entering unreachable code" ) ,
386
384
InvalidDiscriminant ( val) => write ! ( f, "encountering invalid enum discriminant {}" , val) ,
387
385
BoundsCheckFailed { ref len, ref index } => write ! (
@@ -563,8 +561,7 @@ impl InterpError<'_> {
563
561
InterpError :: MachineStop ( _)
564
562
| InterpError :: Unsupported ( UnsupportedOpInfo :: Unsupported ( _) )
565
563
| InterpError :: UndefinedBehavior ( UndefinedBehaviorInfo :: ValidationFailure ( _) )
566
- | InterpError :: UndefinedBehavior ( UndefinedBehaviorInfo :: Ub ( _) )
567
- | InterpError :: UndefinedBehavior ( UndefinedBehaviorInfo :: UbExperimental ( _) ) => true ,
564
+ | InterpError :: UndefinedBehavior ( UndefinedBehaviorInfo :: Ub ( _) ) => true ,
568
565
_ => false ,
569
566
}
570
567
}
0 commit comments