]> git.lizzy.rs Git - rust.git/commitdiff
codegen_llvm: fix spelling & grammatical errors
authorljedrz <ljedrz@gmail.com>
Mon, 8 Oct 2018 14:59:24 +0000 (16:59 +0200)
committerljedrz <ljedrz@gmail.com>
Mon, 8 Oct 2018 17:17:24 +0000 (19:17 +0200)
src/librustc_codegen_llvm/abi.rs
src/librustc_codegen_llvm/base.rs
src/librustc_codegen_llvm/value.rs

index 1a1aeff3745a6e9d15e137cf349e6476fff3f437..c8e8d0dc84ef038027ffc589c558923721a253d2 100644 (file)
@@ -336,7 +336,7 @@ fn new_internal(
             RustIntrinsic | PlatformIntrinsic |
             Rust | RustCall => Conv::C,
 
-            // It's the ABI's job to select this, not us.
+            // It's the ABI's job to select this, not ours.
             System => bug!("system abi should be selected elsewhere"),
 
             Stdcall => Conv::X86Stdcall,
index 0c2a423a18fa4fb8076d609d21afec0374742fd1..c814ab4ab6710123e8e69069ad7690761134ea7d 100644 (file)
@@ -363,8 +363,8 @@ fn cast_shift_rhs<'ll, F, G>(op: hir::BinOpKind,
         if lhs_sz < rhs_sz {
             trunc(rhs, lhs_llty)
         } else if lhs_sz > rhs_sz {
-            // FIXME (#1877: If shifting by negative
-            // values becomes not undefined then this is wrong.
+            // FIXME (#1877: If in the future shifting by negative
+            // values is no longer undefined then this is wrong.
             zext(rhs, lhs_llty)
         } else {
             rhs
index 3328948c2951e5ce18e8b500b4ce9e1189c7f6a9..4bf5b09baa6294ffbfd022bdb4bc8e5646f3cdfa 100644 (file)
@@ -34,6 +34,6 @@ impl fmt::Debug for Value {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         f.write_str(&llvm::build_string(|s| unsafe {
             llvm::LLVMRustWriteValueToString(self, s);
-        }).expect("nun-UTF8 value description from LLVM"))
+        }).expect("non-UTF8 value description from LLVM"))
     }
 }