]> git.lizzy.rs Git - rust.git/commitdiff
Fix typos
authorDániel Buga <bugadani@gmail.com>
Wed, 28 Oct 2020 18:31:16 +0000 (19:31 +0100)
committerDániel Buga <bugadani@gmail.com>
Wed, 28 Oct 2020 18:32:28 +0000 (19:32 +0100)
compiler/rustc_mir/src/dataflow/impls/borrows.rs
compiler/rustc_mir/src/dataflow/impls/liveness.rs

index 0be13b6ba81daf48116dd366af6a7480c1614800..6b7889c4d9e8f8e7881688baecb587a4c856b695 100644 (file)
@@ -177,7 +177,7 @@ fn kill_loans_out_of_scope_at_location(
         //
         // We are careful always to call this function *before* we
         // set up the gen-bits for the statement or
-        // termanator. That way, if the effect of the statement or
+        // terminator. That way, if the effect of the statement or
         // terminator *does* introduce a new loan of the same
         // region, then setting that gen-bit will override any
         // potential kill introduced here.
index b0da28156d1a49e3e1fe4a53f18d37eb1c15dc10..a2b0713cd7d0b6cf87dce1b3e37f00e637cbf9a8 100644 (file)
@@ -8,7 +8,7 @@
 ///
 /// This analysis considers references as being used only at the point of the
 /// borrow. In other words, this analysis does not track uses because of references that already
-/// exist. See [this `mir-datalow` test][flow-test] for an example. You almost never want to use
+/// exist. See [this `mir-dataflow` test][flow-test] for an example. You almost never want to use
 /// this analysis without also looking at the results of [`MaybeBorrowedLocals`].
 ///
 /// [`MaybeBorrowedLocals`]: ../struct.MaybeBorrowedLocals.html
@@ -134,7 +134,7 @@ fn for_place(context: PlaceContext) -> Option<DefUse> {
 
             // `MutatingUseContext::Call` and `MutatingUseContext::Yield` indicate that this is the
             // destination place for a `Call` return or `Yield` resume respectively. Since this is
-            // only a `Def` when the function returns succesfully, we handle this case separately
+            // only a `Def` when the function returns successfully, we handle this case separately
             // in `call_return_effect` above.
             PlaceContext::MutatingUse(MutatingUseContext::Call | MutatingUseContext::Yield) => None,