Skip to content

Commit 4c93145

Browse files
committed
Remove outdated comment.
1 parent 7567f1f commit 4c93145

File tree

1 file changed

+0
-3
lines changed
  • compiler/rustc_codegen_ssa/src/mir

1 file changed

+0
-3
lines changed

compiler/rustc_codegen_ssa/src/mir/block.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,6 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
565565
// with #[rustc_inherit_overflow_checks] and inlined from
566566
// another crate (mostly core::num generic/#[inline] fns),
567567
// while the current crate doesn't use overflow checks.
568-
// NOTE: Unlike binops, negation doesn't have its own
569-
// checked operation, just a comparison with the minimum
570-
// value, so we have to check for the assert message.
571568
if !bx.cx().check_overflow() {
572569
let unchecked_overflow = match msg {
573570
AssertKind::OverflowNeg(..) => true,

0 commit comments

Comments
 (0)