@@ -438,20 +438,20 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
438
438
this. write_scalar ( result_ptr, dest) ?;
439
439
}
440
440
441
- "panic_if_uninhabited " |
442
- "panic_if_zero_invalid " |
443
- "panic_if_any_invalid " => {
441
+ "assert_inhabited " |
442
+ "assert_zero_valid " |
443
+ "assert_uninit_valid " => {
444
444
let ty = substs. type_at ( 0 ) ;
445
445
let layout = this. layout_of ( ty) ?;
446
446
if layout. abi . is_uninhabited ( ) {
447
447
// Return here because we paniced instead of returning normally from the intrinsic.
448
448
return this. start_panic ( & format ! ( "attempted to instantiate uninhabited type `{}`" , ty) , unwind) ;
449
449
}
450
- if intrinsic_name == "panic_if_zero_invalid " && !layout. might_permit_raw_init ( this, /*zero:*/ true ) . unwrap ( ) {
450
+ if intrinsic_name == "assert_zero_valid " && !layout. might_permit_raw_init ( this, /*zero:*/ true ) . unwrap ( ) {
451
451
// Return here because we paniced instead of returning normally from the intrinsic.
452
452
return this. start_panic ( & format ! ( "attempted to zero-initialize type `{}`, which is invalid" , ty) , unwind) ;
453
453
}
454
- if intrinsic_name == "panic_if_any_invalid " && !layout. might_permit_raw_init ( this, /*zero:*/ false ) . unwrap ( ) {
454
+ if intrinsic_name == "assert_uninit_valid " && !layout. might_permit_raw_init ( this, /*zero:*/ false ) . unwrap ( ) {
455
455
// Return here because we paniced instead of returning normally from the intrinsic.
456
456
return this. start_panic ( & format ! ( "attempted to leave type `{}` uninitialized, which is invalid" , ty) , unwind) ;
457
457
}
0 commit comments