@@ -449,7 +449,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
449449 destination : & Option < ( mir:: Place < ' tcx > , mir:: BasicBlock ) > ,
450450 cleanup : Option < mir:: BasicBlock > ,
451451 ) -> bool {
452- // Emit a panic or a no-op for `panic_if_uninhabited` .
452+ // Emit a panic or a no-op for `assert_*` intrinsics .
453453 // These are intrinsics that compile to panics so that we can get a message
454454 // which mentions the offending type, even from a const context.
455455 #[ derive( Debug , PartialEq ) ]
@@ -460,9 +460,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
460460 } ;
461461 let panic_intrinsic = intrinsic. and_then ( |i| match i {
462462 // FIXME: Move to symbols instead of strings.
463- "panic_if_uninhabited " => Some ( PanicIntrinsic :: IfUninhabited ) ,
464- "panic_if_zero_invalid " => Some ( PanicIntrinsic :: IfZeroInvalid ) ,
465- "panic_if_any_invalid " => Some ( PanicIntrinsic :: IfAnyInvalid ) ,
463+ "assert_inhabited " => Some ( PanicIntrinsic :: IfUninhabited ) ,
464+ "assert_zero_valid " => Some ( PanicIntrinsic :: IfZeroInvalid ) ,
465+ "assert_uninit_valid " => Some ( PanicIntrinsic :: IfAnyInvalid ) ,
466466 _ => None ,
467467 } ) ;
468468 if let Some ( intrinsic) = panic_intrinsic {
0 commit comments