@@ -438,20 +438,20 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
438438 this. write_scalar ( result_ptr, dest) ?;
439439 }
440440
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 " => {
444444 let ty = substs. type_at ( 0 ) ;
445445 let layout = this. layout_of ( ty) ?;
446446 if layout. abi . is_uninhabited ( ) {
447447 // Return here because we paniced instead of returning normally from the intrinsic.
448448 return this. start_panic ( & format ! ( "attempted to instantiate uninhabited type `{}`" , ty) , unwind) ;
449449 }
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 ( ) {
451451 // Return here because we paniced instead of returning normally from the intrinsic.
452452 return this. start_panic ( & format ! ( "attempted to zero-initialize type `{}`, which is invalid" , ty) , unwind) ;
453453 }
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 ( ) {
455455 // Return here because we paniced instead of returning normally from the intrinsic.
456456 return this. start_panic ( & format ! ( "attempted to leave type `{}` uninitialized, which is invalid" , ty) , unwind) ;
457457 }
0 commit comments