about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRageking8 <tomleetyt@gmail.com>2022-10-31 12:41:26 +0800
committerRageking8 <tomleetyt@gmail.com>2022-10-31 12:41:26 +0800
commit41c368ba8b0ca08c05ad7bf4a2c3dbbbfe9168ff (patch)
tree888037fa8003ae8a87567290874bd5a1790a7891 /src
parent962bf63dbfcb190bd752e2dbff7d133ab1101f5c (diff)
downloadrust-41c368ba8b0ca08c05ad7bf4a2c3dbbbfe9168ff.tar.gz
rust-41c368ba8b0ca08c05ad7bf4a2c3dbbbfe9168ff.zip
fix dupe word typos
Diffstat (limited to 'src')
-rw-r--r--src/tools/miri/cargo-miri/src/phases.rs2
-rw-r--r--src/tools/miri/src/stacked_borrows/mod.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/miri/cargo-miri/src/phases.rs b/src/tools/miri/cargo-miri/src/phases.rs
index 22da80be902..2c84165a0f0 100644
--- a/src/tools/miri/cargo-miri/src/phases.rs
+++ b/src/tools/miri/cargo-miri/src/phases.rs
@@ -528,7 +528,7 @@ pub fn phase_runner(mut binary_args: impl Iterator<Item = String>, phase: Runner
     cmd.args(binary_args);
 
     // Make sure we use the build-time working directory for interpreting Miri/rustc arguments.
-    // But then we need to switch to the run-time one, which we instruct Miri do do by setting `MIRI_CWD`.
+    // But then we need to switch to the run-time one, which we instruct Miri do by setting `MIRI_CWD`.
     cmd.current_dir(info.current_dir);
     cmd.env("MIRI_CWD", env::current_dir().unwrap());
 
diff --git a/src/tools/miri/src/stacked_borrows/mod.rs b/src/tools/miri/src/stacked_borrows/mod.rs
index 5ec787dd441..7f18e5dbae0 100644
--- a/src/tools/miri/src/stacked_borrows/mod.rs
+++ b/src/tools/miri/src/stacked_borrows/mod.rs
@@ -252,7 +252,7 @@ pub fn err_sb_ub<'tcx>(
 /// We need to make at least the following things true:
 ///
 /// U1: After creating a `Uniq`, it is at the top.
-/// U2: If the top is `Uniq`, accesses must be through that `Uniq` or remove it it.
+/// U2: If the top is `Uniq`, accesses must be through that `Uniq` or remove it.
 /// U3: If an access happens with a `Uniq`, it requires the `Uniq` to be in the stack.
 ///
 /// F1: After creating a `&`, the parts outside `UnsafeCell` have our `SharedReadOnly` on top.