@@ -237,7 +237,7 @@ impl<'tcx> From<InterpError<'tcx>> for InterpErrorInfo<'tcx> {
237237}
238238
239239#[ derive( Clone , RustcEncodable , RustcDecodable , HashStable ) ]
240- pub enum PanicMessage < O > {
240+ pub enum PanicInfo < O > {
241241 Panic {
242242 msg : Symbol ,
243243 line : u32 ,
@@ -257,14 +257,14 @@ pub enum PanicMessage<O> {
257257}
258258
259259/// Type for MIR `Assert` terminator error messages.
260- pub type AssertMessage < ' tcx > = PanicMessage < mir:: Operand < ' tcx > > ;
260+ pub type AssertMessage < ' tcx > = PanicInfo < mir:: Operand < ' tcx > > ;
261261
262- impl < O > PanicMessage < O > {
262+ impl < O > PanicInfo < O > {
263263 /// Getting a description does not require `O` to be printable, and does not
264264 /// require allocation.
265265 /// The caller is expected to handle `Panic` and `BoundsCheck` separately.
266266 pub fn description ( & self ) -> & ' static str {
267- use PanicMessage :: * ;
267+ use PanicInfo :: * ;
268268 match self {
269269 Overflow ( mir:: BinOp :: Add ) =>
270270 "attempt to add with overflow" ,
@@ -293,14 +293,14 @@ impl<O> PanicMessage<O> {
293293 GeneratorResumedAfterPanic =>
294294 "generator resumed after panicking" ,
295295 Panic { .. } | BoundsCheck { .. } =>
296- bug ! ( "Unexpected PanicMessage " ) ,
296+ bug ! ( "Unexpected PanicInfo " ) ,
297297 }
298298 }
299299}
300300
301- impl < O : fmt:: Debug > fmt:: Debug for PanicMessage < O > {
301+ impl < O : fmt:: Debug > fmt:: Debug for PanicInfo < O > {
302302 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
303- use PanicMessage :: * ;
303+ use PanicInfo :: * ;
304304 match self {
305305 Panic { ref msg, line, col, ref file } =>
306306 write ! ( f, "the evaluated program panicked at '{}', {}:{}:{}" , msg, file, line, col) ,
@@ -568,7 +568,7 @@ impl fmt::Debug for ResourceExhaustionInfo {
568568#[ derive( Clone , RustcEncodable , RustcDecodable , HashStable ) ]
569569pub enum InterpError < ' tcx > {
570570 /// The program panicked.
571- Panic ( PanicMessage < u64 > ) ,
571+ Panic ( PanicInfo < u64 > ) ,
572572 /// The program caused undefined behavior.
573573 UndefinedBehaviour ( UndefinedBehaviourInfo ) ,
574574 /// The program did something the interpreter does not support (some of these *might* be UB
0 commit comments