@@ -13,7 +13,7 @@ fn err_sb_ub<'tcx>(
13
13
msg : String ,
14
14
help : Vec < String > ,
15
15
history : Option < TagHistory > ,
16
- ) -> InterpError < ' tcx > {
16
+ ) -> InterpErrorKind < ' tcx > {
17
17
err_machine_stop ! ( TerminationInfo :: StackedBorrowsUb { msg, help, history } )
18
18
}
19
19
@@ -376,7 +376,7 @@ impl<'history, 'ecx, 'tcx> DiagnosticCx<'history, 'ecx, 'tcx> {
376
376
377
377
/// Report a descriptive error when `new` could not be granted from `derived_from`.
378
378
#[ inline( never) ] // This is only called on fatal code paths
379
- pub ( super ) fn grant_error ( & self , stack : & Stack ) -> InterpError < ' tcx > {
379
+ pub ( super ) fn grant_error ( & self , stack : & Stack ) -> InterpErrorKind < ' tcx > {
380
380
let Operation :: Retag ( op) = & self . operation else {
381
381
unreachable ! ( "grant_error should only be called during a retag" )
382
382
} ;
@@ -402,7 +402,7 @@ impl<'history, 'ecx, 'tcx> DiagnosticCx<'history, 'ecx, 'tcx> {
402
402
403
403
/// Report a descriptive error when `access` is not permitted based on `tag`.
404
404
#[ inline( never) ] // This is only called on fatal code paths
405
- pub ( super ) fn access_error ( & self , stack : & Stack ) -> InterpError < ' tcx > {
405
+ pub ( super ) fn access_error ( & self , stack : & Stack ) -> InterpErrorKind < ' tcx > {
406
406
// Deallocation and retagging also do an access as part of their thing, so handle that here, too.
407
407
let op = match & self . operation {
408
408
Operation :: Access ( op) => op,
@@ -424,7 +424,7 @@ impl<'history, 'ecx, 'tcx> DiagnosticCx<'history, 'ecx, 'tcx> {
424
424
}
425
425
426
426
#[ inline( never) ] // This is only called on fatal code paths
427
- pub ( super ) fn protector_error ( & self , item : & Item , kind : ProtectorKind ) -> InterpError < ' tcx > {
427
+ pub ( super ) fn protector_error ( & self , item : & Item , kind : ProtectorKind ) -> InterpErrorKind < ' tcx > {
428
428
let protected = match kind {
429
429
ProtectorKind :: WeakProtector => "weakly protected" ,
430
430
ProtectorKind :: StrongProtector => "strongly protected" ,
@@ -445,7 +445,7 @@ impl<'history, 'ecx, 'tcx> DiagnosticCx<'history, 'ecx, 'tcx> {
445
445
}
446
446
447
447
#[ inline( never) ] // This is only called on fatal code paths
448
- pub fn dealloc_error ( & self , stack : & Stack ) -> InterpError < ' tcx > {
448
+ pub fn dealloc_error ( & self , stack : & Stack ) -> InterpErrorKind < ' tcx > {
449
449
let Operation :: Dealloc ( op) = & self . operation else {
450
450
unreachable ! ( "dealloc_error should only be called during a deallocation" )
451
451
} ;
0 commit comments