@@ -341,16 +341,16 @@ impl fmt::Debug for InvalidProgramInfo<'tcx> {
341
341
}
342
342
343
343
#[ derive( Clone , RustcEncodable , RustcDecodable , HashStable ) ]
344
- pub enum UndefinedBehaviourInfo {
344
+ pub enum UndefinedBehaviorInfo {
345
345
/// Handle cases which for which we do not have a fixed variant.
346
346
Ub ( String ) ,
347
347
/// Unreachable code was executed.
348
348
Unreachable ,
349
349
}
350
350
351
- impl fmt:: Debug for UndefinedBehaviourInfo {
351
+ impl fmt:: Debug for UndefinedBehaviorInfo {
352
352
fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
353
- use UndefinedBehaviourInfo :: * ;
353
+ use UndefinedBehaviorInfo :: * ;
354
354
match self {
355
355
Ub ( ref msg) =>
356
356
write ! ( f, "{}" , msg) ,
@@ -363,7 +363,7 @@ impl fmt::Debug for UndefinedBehaviourInfo {
363
363
#[ derive( Clone , RustcEncodable , RustcDecodable , HashStable ) ]
364
364
pub enum UnsupportedOpInfo < ' tcx > {
365
365
/// Handle cases which for which we do not have a fixed variant.
366
- Unimplemented ( String ) ,
366
+ Unsupported ( String ) ,
367
367
368
368
// -- Everything below is not classified yet --
369
369
FunctionAbiMismatch ( Abi , Abi ) ,
@@ -390,20 +390,14 @@ pub enum UnsupportedOpInfo<'tcx> {
390
390
ReadUndefBytes ( Size ) ,
391
391
DeadLocal ,
392
392
InvalidBoolOp ( mir:: BinOp ) ,
393
- InlineAsm ,
394
393
UnimplementedTraitSelection ,
395
394
CalledClosureAsFunction ,
396
395
NoMirFor ( String ) ,
397
- /// This variant is used by machines to signal their own errors that do not
398
- /// match an existing variant.
399
- MachineError ( String ) ,
400
396
DerefFunctionPointer ,
401
397
ExecuteMemory ,
402
- Intrinsic ( String ) ,
403
398
InvalidChar ( u128 ) ,
404
399
OutOfTls ,
405
400
TlsOutOfBounds ,
406
- AbiViolation ( String ) ,
407
401
AlignmentCheckFailed {
408
402
required : Align ,
409
403
has : Align ,
@@ -513,8 +507,6 @@ impl fmt::Debug for UnsupportedOpInfo<'tcx> {
513
507
initializer") ,
514
508
AssumptionNotHeld =>
515
509
write ! ( f, "`assume` argument was false" ) ,
516
- InlineAsm =>
517
- write ! ( f, "miri does not support inline assembly" ) ,
518
510
ReallocateNonBasePtr =>
519
511
write ! ( f, "tried to reallocate with a pointer not to the beginning of an \
520
512
existing object") ,
@@ -537,10 +529,7 @@ impl fmt::Debug for UnsupportedOpInfo<'tcx> {
537
529
HeapAllocNonPowerOfTwoAlignment ( _) =>
538
530
write ! ( f, "tried to re-, de-, or allocate heap memory with alignment that is \
539
531
not a power of two") ,
540
- MachineError ( ref msg) |
541
- Unimplemented ( ref msg) |
542
- AbiViolation ( ref msg) |
543
- Intrinsic ( ref msg) =>
532
+ Unsupported ( ref msg) =>
544
533
write ! ( f, "{}" , msg) ,
545
534
}
546
535
}
@@ -572,7 +561,7 @@ pub enum InterpError<'tcx> {
572
561
/// The program panicked.
573
562
Panic ( PanicInfo < u64 > ) ,
574
563
/// The program caused undefined behavior.
575
- UndefinedBehaviour ( UndefinedBehaviourInfo ) ,
564
+ UndefinedBehavior ( UndefinedBehaviorInfo ) ,
576
565
/// The program did something the interpreter does not support (some of these *might* be UB
577
566
/// but the interpreter is not sure).
578
567
Unsupported ( UnsupportedOpInfo < ' tcx > ) ,
@@ -603,7 +592,7 @@ impl fmt::Debug for InterpError<'_> {
603
592
write ! ( f, "{:?}" , msg) ,
604
593
InvalidProgram ( ref msg) =>
605
594
write ! ( f, "{:?}" , msg) ,
606
- UndefinedBehaviour ( ref msg) =>
595
+ UndefinedBehavior ( ref msg) =>
607
596
write ! ( f, "{:?}" , msg) ,
608
597
ResourceExhaustion ( ref msg) =>
609
598
write ! ( f, "{:?}" , msg) ,
0 commit comments