about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-02-11 16:42:19 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-02-18 21:35:02 +0000
commit4c93145b3304f7d1f4ec7ac284595f3505f4de72 (patch)
tree6d6c4394bd794495c95e57decfbdffbafcbe62a6 /compiler/rustc_codegen_ssa
parent7567f1f31d5e968380b1e1c5088b00a0606ea1a0 (diff)
downloadrust-4c93145b3304f7d1f4ec7ac284595f3505f4de72.tar.gz
rust-4c93145b3304f7d1f4ec7ac284595f3505f4de72.zip
Remove outdated comment.
Diffstat (limited to 'compiler/rustc_codegen_ssa')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/block.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs
index 35f12ac9dbd..7babb357c7c 100644
--- a/compiler/rustc_codegen_ssa/src/mir/block.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/block.rs
@@ -565,9 +565,6 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
         // with #[rustc_inherit_overflow_checks] and inlined from
         // another crate (mostly core::num generic/#[inline] fns),
         // while the current crate doesn't use overflow checks.
-        // NOTE: Unlike binops, negation doesn't have its own
-        // checked operation, just a comparison with the minimum
-        // value, so we have to check for the assert message.
         if !bx.cx().check_overflow() {
             let unchecked_overflow = match msg {
                 AssertKind::OverflowNeg(..) => true,