@@ -348,6 +348,8 @@ pub enum UndefinedBehaviorInfo {
348
348
UbExperimental ( String ) ,
349
349
/// Unreachable code was executed.
350
350
Unreachable ,
351
+ /// An `assume` was run on a `false` condition,
352
+ AssumptionNotHeld ,
351
353
}
352
354
353
355
impl fmt:: Debug for UndefinedBehaviorInfo {
@@ -358,6 +360,8 @@ impl fmt::Debug for UndefinedBehaviorInfo {
358
360
write ! ( f, "{}" , msg) ,
359
361
Unreachable =>
360
362
write ! ( f, "entered unreachable code" ) ,
363
+ AssumptionNotHeld =>
364
+ write ! ( f, "`assume` argument was false" ) ,
361
365
}
362
366
}
363
367
}
@@ -408,7 +412,6 @@ pub enum UnsupportedOpInfo<'tcx> {
408
412
VtableForArgumentlessMethod ,
409
413
ModifiedConstantMemory ,
410
414
ModifiedStatic ,
411
- AssumptionNotHeld ,
412
415
TypeNotPrimitive ( Ty < ' tcx > ) ,
413
416
ReallocatedWrongMemoryKind ( String , String ) ,
414
417
DeallocatedWrongMemoryKind ( String , String ) ,
@@ -507,8 +510,6 @@ impl fmt::Debug for UnsupportedOpInfo<'tcx> {
507
510
ModifiedStatic =>
508
511
write ! ( f, "tried to modify a static's initial value from another static's \
509
512
initializer") ,
510
- AssumptionNotHeld =>
511
- write ! ( f, "`assume` argument was false" ) ,
512
513
ReallocateNonBasePtr =>
513
514
write ! ( f, "tried to reallocate with a pointer not to the beginning of an \
514
515
existing object") ,
0 commit comments