]> git.lizzy.rs Git - rust.git/commitdiff
Fix typos.
authorBruce Mitchener <bruce.mitchener@gmail.com>
Sun, 11 Nov 2018 13:52:36 +0000 (20:52 +0700)
committerBruce Mitchener <bruce.mitchener@gmail.com>
Sun, 11 Nov 2018 13:52:36 +0000 (20:52 +0700)
19 files changed:
src/bootstrap/compile.rs
src/etc/lldb_batchmode.py
src/libcore/str/mod.rs
src/librustc/infer/outlives/obligations.rs
src/librustc/mir/mod.rs
src/librustc/mir/traversal.rs
src/librustc/ty/query/plumbing.rs
src/librustc_apfloat/ieee.rs
src/librustc_codegen_llvm/llvm_util.rs
src/librustc_codegen_utils/linker.rs
src/librustc_incremental/persist/fs.rs
src/librustc_mir/borrow_check/location.rs
src/librustc_mir/borrow_check/nll/region_infer/values.rs
src/librustc_typeck/check/mod.rs
src/libsyntax/ext/tt/macro_parser.rs
src/libsyntax/ext/tt/quoted.rs
src/test/run-pass-fulldeps/dropck_tarena_sound_drop.rs
src/test/ui/feature-gate/issue-43106-gating-of-proc_macro_derive.rs
src/tools/compiletest/src/header.rs

index cef0849937bf01861602cc947e48c63e562b2fc5..c8689f7814086c927f87aaff77454cca2a6ee420 100644 (file)
@@ -203,7 +203,7 @@ fn should_run(run: ShouldRun) -> ShouldRun {
 
     /// Link all libstd rlibs/dylibs into the sysroot location.
     ///
-    /// Links those artifacts generated by `compiler` to the `stage` compiler's
+    /// Links those artifacts generated by `compiler` to the `stage` compiler's
     /// sysroot for the specified `host` and `target`.
     ///
     /// Note that this assumes that `compiler` has already generated the libstd
index 24a0ce0ac3611270cd6630a26b1595d48afcc40d..b0220c84ef2fa78216a1e20a967c993003789bda 100644 (file)
@@ -12,7 +12,7 @@
 # containing LLDB commands (one command per line), this script will execute the commands one after
 # the other.
 # LLDB also has the -s and -S commandline options which also execute a list of commands from a text
-# file. However, this command are execute `immediately`: the command of a `run` or `continue`
+# file. However, this command are execute `immediately`: the command of a `run` or `continue`
 # command will be executed immediately after the `run` or `continue`, without waiting for the next
 # breakpoint to be hit. This a command sequence like the following will not yield reliable results:
 #
index a2782dd8e2e430f7905c0049d335101bdcadf9b6..fe383712f64c450f10dfefe0a1d18e8d9abc5790 100644 (file)
@@ -1896,7 +1896,7 @@ fn index(self, slice: &str) -> &Self::Output {
         #[inline]
         fn index_mut(self, slice: &mut str) -> &mut Self::Output {
             // is_char_boundary checks that the index is in [0, .len()]
-            // canot reuse `get` as above, because of NLL trouble
+            // cannot reuse `get` as above, because of NLL trouble
             if self.start <= self.end &&
                slice.is_char_boundary(self.start) &&
                slice.is_char_boundary(self.end) {
index f2825887f36e2d28dae70de54776647af151f6ee..0114f9e9321e1878e54b0f96a7195665d4eeab52 100644 (file)
@@ -132,7 +132,7 @@ pub fn take_registered_region_obligations(&self) -> Vec<(ast::NodeId, RegionObli
     ///
     /// See the `region_obligations` field of `InferCtxt` for some
     /// comments about how this function fits into the overall expected
-    /// flow of the the inferencer. The key point is that it is
+    /// flow of the inferencer. The key point is that it is
     /// invoked after all type-inference variables have been bound --
     /// towards the end of regionck. This also ensures that the
     /// region-bound-pairs are available (see comments above regarding
index a84226bf665d0df364b6604961f641233c728e1f..a6fa7b1de7946a6cf77471f7e21e51809c4f65be 100644 (file)
@@ -2610,7 +2610,7 @@ pub fn fmt_const_val(f: &mut impl Write, const_val: &ty::Const<'_>) -> fmt::Resu
             _ => {}
         }
     }
-    // print function definitons
+    // print function definitions
     if let FnDef(did, _) = ty.sty {
         return write!(f, "{}", item_path_str(did));
     }
index a1e2b7a06468d0994bf76868942b3aa352097097..f3a0b7de903744eed856192dda2a88f301c05295 100644 (file)
@@ -142,7 +142,7 @@ fn traverse_successor(&mut self) {
         //
         // It does the actual traversal of the graph, while the `next` method on the iterator
         // just pops off of the stack. `visit_stack` is a stack containing pairs of nodes and
-        // iterators over the sucessors of those nodes. Each iteration attempts to get the next
+        // iterators over the successors of those nodes. Each iteration attempts to get the next
         // node from the top of the stack, then pushes that node and an iterator over the
         // successors to the top of the stack. This loop only grows `visit_stack`, stopping when
         // we reach a child that has no children that we haven't already visited.
@@ -163,7 +163,7 @@ fn traverse_successor(&mut self) {
         // The state of the stack starts out with just the root node (`A` in this case);
         //     [(A, [B, C])]
         //
-        // When the first call to `traverse_sucessor` happens, the following happens:
+        // When the first call to `traverse_successor` happens, the following happens:
         //
         //     [(B, [D]),  // `B` taken from the successors of `A`, pushed to the
         //                 // top of the stack along with the successors of `B`
index 8bbfd92d688edd5581d6e2dfc3a0720c63de0259..efee39a1d63f95070fd2d1b8f256a512cd379688 100644 (file)
@@ -100,7 +100,7 @@ pub(super) struct JobOwner<'a, 'tcx: 'a, Q: QueryDescription<'tcx> + 'a> {
 }
 
 impl<'a, 'tcx, Q: QueryDescription<'tcx>> JobOwner<'a, 'tcx, Q> {
-    /// Either gets a JobOwner corresponding the the query, allowing us to
+    /// Either gets a JobOwner corresponding the query, allowing us to
     /// start executing the query, or it returns with the result of the query.
     /// If the query is executing elsewhere, this will wait for it.
     /// If the query panicked, this will silently panic.
@@ -314,7 +314,7 @@ pub fn try_print_query_stack() {
     /// Try to read a node index for the node dep_node.
     /// A node will have an index, when it's already been marked green, or when we can mark it
     /// green. This function will mark the current task as a reader of the specified node, when
-    /// the a node index can be found for that node.
+    /// a node index can be found for that node.
     pub(super) fn try_mark_green_and_read(self, dep_node: &DepNode) -> Option<DepNodeIndex> {
         match self.dep_graph.node_color(dep_node) {
             Some(DepNodeColor::Green(dep_node_index)) => {
index 4f405858e350ce8269b9fba6dfe8512f2f6474ed..adcb9857ee3c259f6e2f44e61970a314a204ee55 100644 (file)
@@ -895,7 +895,7 @@ fn mul_add_r(mut self, multiplicand: Self, addend: Self, round: Round) -> Status
             }
 
             // The intermediate result of the multiplication has "2 * S::PRECISION"
-            // signicant bit; adjust the addend to be consistent with mul result.
+            // significant bit; adjust the addend to be consistent with mul result.
             let mut ext_addend_sig = [addend.sig[0], 0];
 
             // Extend the addend significand to ext_precision - 1. This guarantees
@@ -920,7 +920,7 @@ fn mul_add_r(mut self, multiplicand: Self, addend: Self, round: Round) -> Status
 
         // Convert the result having "2 * S::PRECISION" significant-bits back to the one
         // having "S::PRECISION" significant-bits. First, move the radix point from
-        // poision "2*S::PRECISION - 1" to "S::PRECISION - 1". The exponent need to be
+        // position "2*S::PRECISION - 1" to "S::PRECISION - 1". The exponent need to be
         // adjusted by "2*S::PRECISION - 1" - "S::PRECISION - 1" = "S::PRECISION".
         self.exp -= S::PRECISION as ExpInt + 1;
 
index eaa599e0cd0fa67f8382eda55fe7575f9aadf9ad..267d7e0d54b637c267054d7336401dcf0d61a3f3 100644 (file)
@@ -184,7 +184,7 @@ unsafe fn configure_llvm(sess: &Session) {
 ];
 
 /// When rustdoc is running, provide a list of all known features so that all their respective
-/// primtives may be documented.
+/// primitives may be documented.
 ///
 /// IMPORTANT: If you're adding another whitelist to the above lists, make sure to add it to this
 /// iterator!
index ae1d77f1521893f84a705b94c03ae89b880a76b0..e9ac92da684352a21b89c83594f73e356351129a 100644 (file)
@@ -613,7 +613,7 @@ fn debuginfo(&mut self) {
         // from the CodeView line tables in the object files.
         self.cmd.arg("/DEBUG");
 
-        // This will cause the Microsoft linker to embed .natvis info into the the PDB file
+        // This will cause the Microsoft linker to embed .natvis info into the PDB file
         let sysroot = self.sess.sysroot();
         let natvis_dir_path = sysroot.join("lib\\rustlib\\etc");
         if let Ok(natvis_dir) = fs::read_dir(&natvis_dir_path) {
index dee50f5ab2679eaba6023ca62d47f83c107d285b..2a8a0baf571b04475d654067ba82b23ae584c2e0 100644 (file)
@@ -490,7 +490,7 @@ fn create_dir(sess: &Session, path: &Path, dir_tag: &str) -> Result<(),()> {
     }
 }
 
-/// Allocate the lock-file and lock it.
+/// Allocate the lock-file and lock it.
 fn lock_directory(sess: &Session,
                   session_dir: &Path)
                   -> Result<(flock::Lock, PathBuf), ()> {
index 91008e8f9690ecf154c6c94d213ed5e906c0bebc..b3e159dd84457c14b2a35ca5d7821a84024195eb 100644 (file)
@@ -11,7 +11,7 @@
 use rustc::mir::{BasicBlock, Location, Mir};
 use rustc_data_structures::indexed_vec::{Idx, IndexVec};
 
-/// Maps between a MIR Location, which identifies the a particular
+/// Maps between a MIR Location, which identifies a particular
 /// statement within a basic block, to a "rich location", which
 /// identifies at a finer granularity. In particular, we distinguish
 /// the *start* of a statement and the *mid-point*. The mid-point is
index 3607ae4f5088d4b3bf97ad6b30ecf83f389660a3..2b7ef38d3edf940bfd4298619a703229eeb99dcf 100644 (file)
@@ -112,7 +112,7 @@ impl RegionValueElements {
         } = self.to_location(index);
         if statement_index == 0 {
             // If this is a basic block head, then the predecessors are
-            // the the terminators of other basic blocks
+            // the terminators of other basic blocks
             stack.extend(
                 mir.predecessors_for(block)
                     .iter()
index 7dfdb926c60ef63a0b9f8fe8d71fb0bfe451e660..091af449095aab80ef0876465dba968cdc1ab423 100644 (file)
@@ -548,7 +548,7 @@ pub struct FnCtxt<'a, 'gcx: 'a+'tcx, 'tcx: 'a> {
     /// current expression. As each subpart is processed, they may set
     /// the flag to `Always` etc.  Finally, at the end, we take the
     /// result and "union" it with the original value, so that when we
-    /// return the flag indicates if any subpart of the the parent
+    /// return the flag indicates if any subpart of the parent
     /// expression (up to and including this part) has diverged.  So,
     /// if you read it after evaluating a subexpression `X`, the value
     /// you get indicates whether any subexpression that was
index 06c1d58070e21fe3524dcc9463e51cbb2e3c7d2a..f2b1c359c0ea8efbd35350e1fae5511b50ed288e 100644 (file)
@@ -122,7 +122,7 @@ fn len(&self) -> usize {
         }
     }
 
-    /// The the `index`-th token tree of `self`.
+    /// The `index`-th token tree of `self`.
     fn get_tt(&self, index: usize) -> TokenTree {
         match *self {
             TtSeq(ref v) => v[index].clone(),
index 74363f3e5f7d968931a36fccfcd8489fa1dd8c6c..218486748315d6bf88da9b88757233d9a0b1d726 100644 (file)
@@ -496,7 +496,7 @@ fn parse_sep_and_kleene_op_2015<I>(
                         return (None, KleeneOp::ZeroOrMore);
                     }
 
-                    // #2 is a Kleene op, which is the the only valid option
+                    // #2 is a Kleene op, which is the only valid option
                     Ok(Ok((op, _))) => {
                         // Warn that `?` as a separator will be deprecated
                         sess.buffer_lint(
index 9fa0b40d49c20a2dd77ccb7553aa30cc27a25ffe..e519d48ac1d4d98fee30da05119d8534fce44902 100644 (file)
@@ -31,7 +31,7 @@ struct CheckId<T:HasId> { v: T }
 // In the code below, the impl of HasId for `&'a usize` does not
 // actually access the borrowed data, but the point is that the
 // interface to CheckId does not (and cannot) know that, and therefore
-// when encountering the a value V of type CheckId<S>, we must
+// when encountering a value V of type CheckId<S>, we must
 // conservatively force the type S to strictly outlive V.
 impl<T:HasId> Drop for CheckId<T> {
     fn drop(&mut self) {
index 5bb8bb024ed5145a636c3764d752b5bee0a4643e..c23b43dfff706e5d91fd1056a08600ce90c1c665 100644 (file)
@@ -13,7 +13,7 @@
 // not descend further into the mod for other occurrences of the same
 // error.
 //
-// This file sits on its own because the the "weird" occurrences here
+// This file sits on its own because the "weird" occurrences here
 // signal errors, making it incompatible with the "warnings only"
 // nature of issue-43106-gating-of-builtin-attrs.rs
 
index f12dd31c402d9e85d11b1cc542ac477136290b5d..ed2114b653015806cbf948b7209473f9d466a2bb 100644 (file)
@@ -490,7 +490,7 @@ fn load_from(&mut self, testfile: &Path, cfg: Option<&str>, config: &Config) {
             }
 
             if !self.compile_pass {
-                // run-pass implies must_compile_sucessfully
+                // run-pass implies must_compile_successfully
                 self.compile_pass = config.parse_compile_pass(ln) || self.run_pass;
             }