@@ -449,7 +449,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
449
449
destination : & Option < ( mir:: Place < ' tcx > , mir:: BasicBlock ) > ,
450
450
cleanup : Option < mir:: BasicBlock > ,
451
451
) -> bool {
452
- // Emit a panic or a no-op for `panic_if_uninhabited` .
452
+ // Emit a panic or a no-op for `assert_*` intrinsics .
453
453
// These are intrinsics that compile to panics so that we can get a message
454
454
// which mentions the offending type, even from a const context.
455
455
#[ derive( Debug , PartialEq ) ]
@@ -460,9 +460,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
460
460
} ;
461
461
let panic_intrinsic = intrinsic. and_then ( |i| match i {
462
462
// 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 ) ,
466
466
_ => None ,
467
467
} ) ;
468
468
if let Some ( intrinsic) = panic_intrinsic {
0 commit comments