]> git.lizzy.rs Git - rust.git/commitdiff
trailing full stops
authorRalf Jung <post@ralfj.de>
Thu, 25 Jul 2019 07:08:00 +0000 (09:08 +0200)
committerRalf Jung <post@ralfj.de>
Fri, 2 Aug 2019 21:04:11 +0000 (23:04 +0200)
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
src/librustc_mir/interpret/cast.rs
src/librustc_mir/interpret/operator.rs

index edddbc88500630d272b15d6a8be2423967de4cd4..1dbf1d094055780f17eec86c472cabc9dbe3854d 100644 (file)
@@ -110,7 +110,7 @@ fn cast_immediate(
                 )
         }
 
-        // 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) =
index 24bb712410089ee663210350b2d40318656ab977..02dc3c01036d0bc3c99f74c582b3d68e9cb8fecc 100644 (file)
@@ -303,7 +303,7 @@ pub fn binary_op(
                 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: {:?} {:?} {:?}",