diff options
| author | Cristi Cobzarenco <cristi.cobzarenco@gmail.com> | 2015-10-07 23:11:25 +0100 |
|---|---|---|
| committer | Cristi Cobzarenco <cristi.cobzarenco@gmail.com> | 2015-10-08 19:49:31 +0100 |
| commit | 4b308b44e1d8204702f6912dda4dfc404aa2a87d (patch) | |
| tree | 81656e777de1d1de896739e318645bca7317e391 /src/test | |
| parent | 95285c496f58a326eace11bddb25a7ce7adcfe44 (diff) | |
| download | rust-4b308b44e1d8204702f6912dda4dfc404aa2a87d.tar.gz rust-4b308b44e1d8204702f6912dda4dfc404aa2a87d.zip | |
typos: fix a grabbag of typos all over the place
Diffstat (limited to 'src/test')
15 files changed, 16 insertions, 16 deletions
diff --git a/src/test/compile-fail/associated-types-invalid-trait-ref-issue-18865.rs b/src/test/compile-fail/associated-types-invalid-trait-ref-issue-18865.rs index b6c4d59c848..d48cff405a6 100644 --- a/src/test/compile-fail/associated-types-invalid-trait-ref-issue-18865.rs +++ b/src/test/compile-fail/associated-types-invalid-trait-ref-issue-18865.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Test that we report an error if the trait ref in an qualified type +// Test that we report an error if the trait ref in a qualified type // uses invalid type arguments. trait Foo<T> { diff --git a/src/test/compile-fail/const-len-underflow-separate-spans.rs b/src/test/compile-fail/const-len-underflow-separate-spans.rs index cd021a0d3b1..786c72b66f3 100644 --- a/src/test/compile-fail/const-len-underflow-separate-spans.rs +++ b/src/test/compile-fail/const-len-underflow-separate-spans.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Check that an constant-evaluation underflow highlights the correct +// Check that a constant-evaluation underflow highlights the correct // spot (where the underflow occurred), while also providing the // overall context for what caused the evaluation. diff --git a/src/test/compile-fail/const-len-underflow-subspans.rs b/src/test/compile-fail/const-len-underflow-subspans.rs index a31da114679..020717dc1e1 100644 --- a/src/test/compile-fail/const-len-underflow-subspans.rs +++ b/src/test/compile-fail/const-len-underflow-subspans.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Check that an constant-evaluation underflow highlights the correct +// Check that a constant-evaluation underflow highlights the correct // spot (where the underflow occurred). const ONE: usize = 1; diff --git a/src/test/compile-fail/dropck_tarena_unsound_drop.rs b/src/test/compile-fail/dropck_tarena_unsound_drop.rs index 600c794109c..6cbed34c7ad 100644 --- a/src/test/compile-fail/dropck_tarena_unsound_drop.rs +++ b/src/test/compile-fail/dropck_tarena_unsound_drop.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Check that a arena (TypedArena) cannot carry elements whose drop +// Check that an arena (TypedArena) cannot carry elements whose drop // methods might access borrowed data of lifetime that does not // strictly outlive the arena itself. // @@ -30,7 +30,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) { diff --git a/src/test/compile-fail/dropck_trait_cycle_checked.rs b/src/test/compile-fail/dropck_trait_cycle_checked.rs index 6e0679da949..e701718028a 100644 --- a/src/test/compile-fail/dropck_trait_cycle_checked.rs +++ b/src/test/compile-fail/dropck_trait_cycle_checked.rs @@ -9,7 +9,7 @@ // except according to those terms. // Reject mixing cyclic structure and Drop when using trait -// objects to hide the the cross-references. +// objects to hide the cross-references. // // (Compare against compile-fail/dropck_vec_cycle_checked.rs) diff --git a/src/test/compile-fail/issue-17904-2.rs b/src/test/compile-fail/issue-17904-2.rs index a33ec23a16a..a15ccb71aa7 100644 --- a/src/test/compile-fail/issue-17904-2.rs +++ b/src/test/compile-fail/issue-17904-2.rs @@ -9,7 +9,7 @@ // except according to those terms. // Test that we can parse a unit struct with a where clause, even if -// it leads to a error later on since `T` is unused. +// it leads to an error later on since `T` is unused. struct Foo<T> where T: Copy; //~ ERROR parameter `T` is never used diff --git a/src/test/compile-fail/issue-1920-2.rs b/src/test/compile-fail/issue-1920-2.rs index 57eb82a156b..c73a1735064 100644 --- a/src/test/compile-fail/issue-1920-2.rs +++ b/src/test/compile-fail/issue-1920-2.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -//! Test that when a crate is linked under another name that that name is used in global paths +//! Test that when a crate is linked under another name that name is used in global paths extern crate core as bar; diff --git a/src/test/compile-fail/issue-6801.rs b/src/test/compile-fail/issue-6801.rs index 8261862c5fc..792d27c179b 100644 --- a/src/test/compile-fail/issue-6801.rs +++ b/src/test/compile-fail/issue-6801.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Creating a stack closure which references an box and then +// Creating a stack closure which references a box and then // transferring ownership of the box before invoking the stack // closure results in a crash. diff --git a/src/test/compile-fail/regions-outlives-projection-container-hrtb.rs b/src/test/compile-fail/regions-outlives-projection-container-hrtb.rs index b8c4a7f8a8c..ec0631a881a 100644 --- a/src/test/compile-fail/regions-outlives-projection-container-hrtb.rs +++ b/src/test/compile-fail/regions-outlives-projection-container-hrtb.rs @@ -37,7 +37,7 @@ pub struct WithHrAssoc<T> } fn with_assoc<'a,'b>() { - // We get an error because beacuse 'b:'a does not hold: + // We get an error because 'b:'a does not hold: let _: &'a WithHrAssoc<TheType<'b>> = loop { }; //~^ ERROR reference has a longer lifetime diff --git a/src/test/compile-fail/unboxed-closures-recursive-fn-using-fn-mut.rs b/src/test/compile-fail/unboxed-closures-recursive-fn-using-fn-mut.rs index 2dcd7a97d89..23306823c72 100644 --- a/src/test/compile-fail/unboxed-closures-recursive-fn-using-fn-mut.rs +++ b/src/test/compile-fail/unboxed-closures-recursive-fn-using-fn-mut.rs @@ -12,7 +12,7 @@ use std::marker::PhantomData; -// A erroneous variant of `run-pass/unboxed_closures-infer-recursive-fn.rs` +// An erroneous variant of `run-pass/unboxed_closures-infer-recursive-fn.rs` // where we attempt to perform mutation in the recursive function. This fails to compile // because it winds up requiring `FnMut` which enforces linearity. diff --git a/src/test/compile-fail/variance-regions-direct.rs b/src/test/compile-fail/variance-regions-direct.rs index 319b81bde36..bb452eecbfc 100644 --- a/src/test/compile-fail/variance-regions-direct.rs +++ b/src/test/compile-fail/variance-regions-direct.rs @@ -48,7 +48,7 @@ struct Test5<'a, 'b:'a> { //~ ERROR regions=[[+, o];[];[]] // Invariance is a trap from which NO ONE CAN ESCAPE. // In other words, even though the `&'b isize` occurs in -// a argument list (which is contravariant), that +// an argument list (which is contravariant), that // argument list occurs in an invariant context. #[rustc_variance] diff --git a/src/test/run-fail/issue-18576.rs b/src/test/run-fail/issue-18576.rs index 0b82a0d8d83..e326949458e 100644 --- a/src/test/run-fail/issue-18576.rs +++ b/src/test/run-fail/issue-18576.rs @@ -11,7 +11,7 @@ // error-pattern:stop // #18576 -// Make sure that an calling extern function pointer in an unreachable +// Make sure that calling an extern function pointer in an unreachable // context doesn't cause an LLVM assertion #[allow(unreachable_code)] diff --git a/src/test/run-pass/dropck_tarena_sound_drop.rs b/src/test/run-pass/dropck_tarena_sound_drop.rs index b0c4f4ca272..db30bfbf747 100644 --- a/src/test/run-pass/dropck_tarena_sound_drop.rs +++ b/src/test/run-pass/dropck_tarena_sound_drop.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Check that a arena (TypedArena) can carry elements whose drop +// Check that an arena (TypedArena) can carry elements whose drop // methods might access borrowed data, as long as the borrowed data // has lifetime that strictly outlives the arena itself. // diff --git a/src/test/run-pass/impl-inherent-non-conflict.rs b/src/test/run-pass/impl-inherent-non-conflict.rs index 0d43f1ca706..209b4acb095 100644 --- a/src/test/run-pass/impl-inherent-non-conflict.rs +++ b/src/test/run-pass/impl-inherent-non-conflict.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Ensure that an user-defined type admits multiple inherent methods +// Ensure that a user-defined type admits multiple inherent methods // with the same name, which can be called on values that have a // precise enough type to allow distinguishing between the methods. diff --git a/src/test/run-pass/issue-24085.rs b/src/test/run-pass/issue-24085.rs index 3617b0d3a57..fde32cb9023 100644 --- a/src/test/run-pass/issue-24085.rs +++ b/src/test/run-pass/issue-24085.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Regression test for #24085. Errors were occuring in region +// Regression test for #24085. Errors were occurring in region // inference due to the requirement that `'a:b'`, which was getting // incorrectly translated in connection with the closure below. |
