about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRageking8 <tomleetyt@gmail.com>2022-10-14 00:25:34 +0800
committerRageking8 <tomleetyt@gmail.com>2022-10-14 12:57:56 +0800
commit54ee5ac0734a5c715558190fda9c61be2446d93a (patch)
tree932b4edd1d574bd79bc1e758dd73dd0be44786d3
parent187b76965a58dcb64b4ca6cd2513c517eda5ad67 (diff)
downloadrust-54ee5ac0734a5c715558190fda9c61be2446d93a.tar.gz
rust-54ee5ac0734a5c715558190fda9c61be2446d93a.zip
more dupe word typos
-rw-r--r--build_system/rustc_info.rs2
-rw-r--r--src/abi/pass_mode.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/build_system/rustc_info.rs b/build_system/rustc_info.rs
index 913b589afcc..3c08b6fa389 100644
--- a/build_system/rustc_info.rs
+++ b/build_system/rustc_info.rs
@@ -65,7 +65,7 @@ pub(crate) fn get_file_name(crate_name: &str, crate_type: &str) -> String {
 }
 
 /// Similar to `get_file_name`, but converts any dashes (`-`) in the `crate_name` to
-/// underscores (`_`). This is specially made for the the rustc and cargo wrappers
+/// underscores (`_`). This is specially made for the rustc and cargo wrappers
 /// which have a dash in the name, and that is not allowed in a crate name.
 pub(crate) fn get_wrapper_file_name(crate_name: &str, crate_type: &str) -> String {
     let crate_name = crate_name.replace('-', "_");
diff --git a/src/abi/pass_mode.rs b/src/abi/pass_mode.rs
index 96e25d3a8d4..e5ad31eb948 100644
--- a/src/abi/pass_mode.rs
+++ b/src/abi/pass_mode.rs
@@ -193,7 +193,7 @@ pub(super) fn from_casted_value<'tcx>(
         kind: StackSlotKind::ExplicitSlot,
         // FIXME Don't force the size to a multiple of 16 bytes once Cranelift gets a way to
         // specify stack slot alignment.
-        // Stack slot size may be bigger for for example `[u8; 3]` which is packed into an `i32`.
+        // Stack slot size may be bigger for example `[u8; 3]` which is packed into an `i32`.
         // It may also be smaller for example when the type is a wrapper around an integer with a
         // larger alignment than the integer.
         size: (std::cmp::max(abi_param_size, layout_size) + 15) / 16 * 16,