diff options
| author | Ralf Jung <post@ralfj.de> | 2019-07-25 09:08:00 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-08-02 23:04:11 +0200 |
| commit | 5fa443ddee30bd2489d0368ee553c416ccc48a5b (patch) | |
| tree | 8a1314ce094d3fa4db1f9d2bab1e7ff66a8686c5 | |
| parent | 7b30612c9bf8731abeb42eff684ae15f46a0656d (diff) | |
trailing full stops
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
| -rw-r--r-- | src/librustc_mir/interpret/cast.rs | 2 | ||||
| -rw-r--r-- | src/librustc_mir/interpret/operator.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_mir/interpret/cast.rs b/src/librustc_mir/interpret/cast.rs index edddbc88500..1dbf1d09405 100644 --- a/src/librustc_mir/interpret/cast.rs +++ b/src/librustc_mir/interpret/cast.rs @@ -110,7 +110,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { ) } - // Handle cast from a univariant (ZST) enum + // Handle cast from a univariant (ZST) enum. match src.layout.variants { layout::Variants::Single { index } => { if let Some(discr) = diff --git a/src/librustc_mir/interpret/operator.rs b/src/librustc_mir/interpret/operator.rs index 24bb7124100..02dc3c01036 100644 --- a/src/librustc_mir/interpret/operator.rs +++ b/src/librustc_mir/interpret/operator.rs @@ -303,7 +303,7 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { self.binary_int_op(bin_op, l, left.layout, r, right.layout) } _ if left.layout.ty.is_any_ptr() => { - // The RHS type must be the same *or an integer type* (for `Offset`) + // The RHS type must be the same *or an integer type* (for `Offset`). assert!( right.layout.ty == left.layout.ty || right.layout.ty.is_integral(), "Unexpected types for BinOp: {:?} {:?} {:?}", |
