@@ -531,7 +531,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
531531 // appropriate to use.
532532 assert_eq ! ( op, UnOp :: Neg , "Neg is the only UnOp that can overflow" ) ;
533533 self . report_assert_as_lint (
534- lint:: builtin:: OVERFLOW ,
534+ lint:: builtin:: ARITHMETIC_OVERFLOW ,
535535 source_info,
536536 "this arithmetic operation will overflow" ,
537537 AssertKind :: OverflowNeg ,
@@ -560,7 +560,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
560560 let r_bits = r. to_scalar ( ) . and_then ( |r| r. to_bits ( right_size) ) ;
561561 if r_bits. map_or ( false , |b| b >= left_size_bits as u128 ) {
562562 self . report_assert_as_lint (
563- lint:: builtin:: EXCEEDING_BITSHIFTS ,
563+ lint:: builtin:: ARITHMETIC_OVERFLOW ,
564564 source_info,
565565 "this arithmetic operation will overflow" ,
566566 AssertKind :: Overflow ( op) ,
@@ -575,7 +575,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
575575 Ok ( overflow)
576576 } ) ? {
577577 self . report_assert_as_lint (
578- lint:: builtin:: OVERFLOW ,
578+ lint:: builtin:: ARITHMETIC_OVERFLOW ,
579579 source_info,
580580 "this arithmetic operation will overflow" ,
581581 AssertKind :: Overflow ( op) ,
@@ -937,7 +937,7 @@ impl<'mir, 'tcx> MutVisitor<'tcx> for ConstPropagator<'mir, 'tcx> {
937937 _ => return ,
938938 } ;
939939 self . report_assert_as_lint (
940- lint:: builtin:: PANIC ,
940+ lint:: builtin:: UNCONDITIONAL_PANIC ,
941941 source_info,
942942 "this operation will panic at runtime" ,
943943 msg,
0 commit comments