diff options
| author | Ralf Jung <post@ralfj.de> | 2020-02-13 11:26:09 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-13 11:26:09 +0100 |
| commit | 33ba83c3a0905c86a6b5182b3b3d35f2f6086e5b (patch) | |
| tree | e16e071545ae9e82fb099c9e94268a09bfcb4520 | |
| parent | ed2f22c5a973f4deffa4bd6efbbee0393ff91691 (diff) | |
| download | rust-33ba83c3a0905c86a6b5182b3b3d35f2f6086e5b.tar.gz rust-33ba83c3a0905c86a6b5182b3b3d35f2f6086e5b.zip | |
fix typo
| -rw-r--r-- | src/librustc_mir/transform/const_prop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_mir/transform/const_prop.rs b/src/librustc_mir/transform/const_prop.rs index 09eb6e952ad..5729cda64f7 100644 --- a/src/librustc_mir/transform/const_prop.rs +++ b/src/librustc_mir/transform/const_prop.rs @@ -527,7 +527,7 @@ impl<'mir, 'tcx> ConstPropagator<'mir, 'tcx> { let (_res, overflow, _ty) = this.ecx.overflowing_unary_op(op, val)?; Ok(overflow) })? { - // `AssertKind` only has an `OverflowNeg` variant, to make sure that is + // `AssertKind` only has an `OverflowNeg` variant, so make sure that is // appropriate to use. assert_eq!(op, UnOp::Neg, "Neg is the only UnOp that can overflow"); self.report_panic_as_lint(source_info, AssertKind::OverflowNeg)?; |
