Skip to content

Commit 33ba83c

Browse files
authored
fix typo
1 parent ed2f22c commit 33ba83c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/transform/const_prop.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> {
527527
let (_res, overflow, _ty) = this.ecx.overflowing_unary_op(op, val)?;
528528
Ok(overflow)
529529
})? {
530-
// `AssertKind` only has an `OverflowNeg` variant, to make sure that is
530+
// `AssertKind` only has an `OverflowNeg` variant, so make sure that is
531531
// appropriate to use.
532532
assert_eq!(op, UnOp::Neg, "Neg is the only UnOp that can overflow");
533533
self.report_panic_as_lint(source_info, AssertKind::OverflowNeg)?;

0 commit comments

Comments
 (0)