diff options
| author | kennytm <kennytm@gmail.com> | 2018-08-21 01:20:25 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-08-21 17:51:49 +0800 |
| commit | b5519db3236a94c1f090dcafaf38ef858ec33a26 (patch) | |
| tree | 8dda85089b5fcfeaa4909389fa0777e6a908d4e0 /src/test | |
| parent | 0834a1aea7e35deef88981eb90b12d62b6886fd6 (diff) | |
| parent | 71120ef1e5cb885ee45e6148970db6ce93ce1aca (diff) | |
| download | rust-b5519db3236a94c1f090dcafaf38ef858ec33a26.tar.gz rust-b5519db3236a94c1f090dcafaf38ef858ec33a26.zip | |
Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkor
Fix typos found by codespell.
Diffstat (limited to 'src/test')
35 files changed, 39 insertions, 39 deletions
diff --git a/src/test/codegen-units/item-collection/cross-crate-trait-method.rs b/src/test/codegen-units/item-collection/cross-crate-trait-method.rs index 7a16b22a023..2951ee4f6c9 100644 --- a/src/test/codegen-units/item-collection/cross-crate-trait-method.rs +++ b/src/test/codegen-units/item-collection/cross-crate-trait-method.rs @@ -28,7 +28,7 @@ fn start(_: isize, _: *const *const u8) -> isize { let _: (char, u32) = Trait::without_default_impl(0); // Currently, no object code is generated for trait methods with default - // implemenations, unless they are actually called from somewhere. Therefore + // implementations, unless they are actually called from somewhere. Therefore // we cannot import the implementations and have to create our own inline. //~ MONO_ITEM fn cgu_export_trait_method::Trait[0]::with_default_impl[0]<u32> let _ = Trait::with_default_impl(0u32); diff --git a/src/test/compile-fail-fulldeps/auxiliary/pub_and_stability.rs b/src/test/compile-fail-fulldeps/auxiliary/pub_and_stability.rs index eedc1e745e2..f46d906d865 100644 --- a/src/test/compile-fail-fulldeps/auxiliary/pub_and_stability.rs +++ b/src/test/compile-fail-fulldeps/auxiliary/pub_and_stability.rs @@ -9,7 +9,7 @@ // except according to those terms. // This crate attempts to enumerate the various scenarios for how a -// type can define fields and methods with various visiblities and +// type can define fields and methods with various visibilities and // stabilities. // // The basic stability pattern in this file has four cases: @@ -23,7 +23,7 @@ // // However, since stability attributes can only be observed in // cross-crate linkage scenarios, there is little reason to take the -// cross-product (4 stability cases * 4 visiblity cases), because the +// cross-product (4 stability cases * 4 visibility cases), because the // first three visibility cases cannot be accessed outside this crate, // and therefore stability is only relevant when the visibility is pub // to the whole universe. diff --git a/src/test/run-fail/run-unexported-tests.rs b/src/test/run-fail/run-unexported-tests.rs index 3f75229948d..c7d5574f909 100644 --- a/src/test/run-fail/run-unexported-tests.rs +++ b/src/test/run-fail/run-unexported-tests.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// error-pattern:runned an unexported test +// error-pattern:ran an unexported test // compile-flags:--test // check-stdout @@ -17,6 +17,6 @@ mod m { #[test] fn unexported() { - panic!("runned an unexported test"); + panic!("ran an unexported test"); } } diff --git a/src/test/run-make-fulldeps/hir-tree/Makefile b/src/test/run-make-fulldeps/hir-tree/Makefile index 2e100b269e1..3412c8ce1f5 100644 --- a/src/test/run-make-fulldeps/hir-tree/Makefile +++ b/src/test/run-make-fulldeps/hir-tree/Makefile @@ -1,6 +1,6 @@ -include ../tools.mk -# Test that hir-tree output doens't crash and includes +# Test that hir-tree output doesn't crash and includes # the string constant we would expect to see. all: diff --git a/src/test/run-make-fulldeps/rustdoc-error-lines/Makefile b/src/test/run-make-fulldeps/rustdoc-error-lines/Makefile index 0019e5ee794..b669f9cedc1 100644 --- a/src/test/run-make-fulldeps/rustdoc-error-lines/Makefile +++ b/src/test/run-make-fulldeps/rustdoc-error-lines/Makefile @@ -1,6 +1,6 @@ -include ../tools.mk -# Test that hir-tree output doens't crash and includes +# Test that hir-tree output doesn't crash and includes # the string constant we would expect to see. all: diff --git a/src/test/run-make-fulldeps/sanitizer-cdylib-link/Makefile b/src/test/run-make-fulldeps/sanitizer-cdylib-link/Makefile index bea5519ec5f..4b7fece36d9 100644 --- a/src/test/run-make-fulldeps/sanitizer-cdylib-link/Makefile +++ b/src/test/run-make-fulldeps/sanitizer-cdylib-link/Makefile @@ -3,7 +3,7 @@ LOG := $(TMPDIR)/log.txt # This test builds a shared object, then an executable that links it as a native -# rust library (constrast to an rlib). The shared library and executable both +# rust library (contrast to an rlib). The shared library and executable both # are compiled with address sanitizer, and we assert that a fault in the cdylib # is correctly detected. diff --git a/src/test/run-make-fulldeps/sanitizer-dylib-link/Makefile b/src/test/run-make-fulldeps/sanitizer-dylib-link/Makefile index 0cc8f73da8b..97f61721422 100644 --- a/src/test/run-make-fulldeps/sanitizer-dylib-link/Makefile +++ b/src/test/run-make-fulldeps/sanitizer-dylib-link/Makefile @@ -3,7 +3,7 @@ LOG := $(TMPDIR)/log.txt # This test builds a shared object, then an executable that links it as a native -# rust library (constrast to an rlib). The shared library and executable both +# rust library (contrast to an rlib). The shared library and executable both # are compiled with address sanitizer, and we assert that a fault in the dylib # is correctly detected. diff --git a/src/test/run-pass/dropck_legal_cycles.rs b/src/test/run-pass/dropck_legal_cycles.rs index b6e640ab5b5..5f915a762d1 100644 --- a/src/test/run-pass/dropck_legal_cycles.rs +++ b/src/test/run-pass/dropck_legal_cycles.rs @@ -385,7 +385,7 @@ pub fn main() { // RwLock (since we can grab the child pointers in read-only // mode), but we cannot lock a std::sync::Mutex to guard reading // from each node via the same pattern, since once you hit the - // cycle, you'll be trying to acquring the same lock twice. + // cycle, you'll be trying to acquiring the same lock twice. // (We deal with this by exiting the traversal early if try_lock fails.) // Cycle 12: { arc0 -> (arc1, arc2), arc1 -> (), arc2 -> arc0 }, refcells diff --git a/src/test/run-pass/ifmt.rs b/src/test/run-pass/ifmt.rs index d09376acc84..37436d7ae00 100644 --- a/src/test/run-pass/ifmt.rs +++ b/src/test/run-pass/ifmt.rs @@ -310,7 +310,7 @@ fn test_order() { } fn test_once() { - // Make sure each argument are evaluted only once even though it may be + // Make sure each argument are evaluated only once even though it may be // formatted multiple times fn foo() -> isize { static mut FOO: isize = 0; diff --git a/src/test/run-pass/issue-15881-model-lexer-dotdotdot.rs b/src/test/run-pass/issue-15881-model-lexer-dotdotdot.rs index 2ec97e373b2..04ffad501b0 100644 --- a/src/test/run-pass/issue-15881-model-lexer-dotdotdot.rs +++ b/src/test/run-pass/issue-15881-model-lexer-dotdotdot.rs @@ -27,7 +27,7 @@ pub fn main() { } match 'c' { 'a'...'z' => {} - _ => panic!("should suppport char ranges") + _ => panic!("should support char ranges") } match -3_isize { -7...5 => {} diff --git a/src/test/run-pass/issue-20616.rs b/src/test/run-pass/issue-20616.rs index d5b79971094..5727f54cd70 100644 --- a/src/test/run-pass/issue-20616.rs +++ b/src/test/run-pass/issue-20616.rs @@ -26,7 +26,7 @@ type TypeD = TypeA<'static>; // trailing comma on lifetime bounds type TypeE = TypeA<'static,>; -// normal type arugment +// normal type argument type TypeF<T> = Box<T>; // type argument with trailing comma diff --git a/src/test/run-pass/issue-33903.rs b/src/test/run-pass/issue-33903.rs index ab368537e21..3bc0f7a0fde 100644 --- a/src/test/run-pass/issue-33903.rs +++ b/src/test/run-pass/issue-33903.rs @@ -11,7 +11,7 @@ // Issue 33903: // Built-in indexing should be used even when the index is not // trivially an integer -// Only built-in indexing can be used in constant expresssions +// Only built-in indexing can be used in constant expressions const FOO: i32 = [12, 34][0 + 1]; diff --git a/src/test/run-pass/issue-48962.rs b/src/test/run-pass/issue-48962.rs index a603dfbfe5f..46aeb329c89 100644 --- a/src/test/run-pass/issue-48962.rs +++ b/src/test/run-pass/issue-48962.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Test that we are able to reinitilize box with moved referent +// Test that we are able to reinitialize box with moved referent #![feature(nll)] static mut ORDER: [usize; 3] = [0, 0, 0]; static mut INDEX: usize = 0; diff --git a/src/test/run-pass/match-range.rs b/src/test/run-pass/match-range.rs index 859edb80a07..efa72532196 100644 --- a/src/test/run-pass/match-range.rs +++ b/src/test/run-pass/match-range.rs @@ -34,7 +34,7 @@ pub fn main() { } match 'c' { 'a'..='z' => {} - _ => panic!("should suppport char ranges") + _ => panic!("should support char ranges") } match -3 { -7..=5 => {} diff --git a/src/test/run-pass/match-reassign.rs b/src/test/run-pass/match-reassign.rs index 759296ad46b..bedcee43db5 100644 --- a/src/test/run-pass/match-reassign.rs +++ b/src/test/run-pass/match-reassign.rs @@ -9,7 +9,7 @@ // except according to those terms. // Regression test for #23698: The reassignment checker only cared -// about the last assigment in a match arm body +// about the last assignment in a match arm body // Use an extra function to make sure no extra assignments // are introduced by macros in the match statement diff --git a/src/test/run-pass/packed-struct-optimized-enum.rs b/src/test/run-pass/packed-struct-optimized-enum.rs index 7968ae2278a..9d23a0c7148 100644 --- a/src/test/run-pass/packed-struct-optimized-enum.rs +++ b/src/test/run-pass/packed-struct-optimized-enum.rs @@ -26,7 +26,7 @@ fn sanity_check_size<T: Copy>(one: T) { fn main() { // This can fail if rustc and LLVM disagree on the size of a type. - // In this case, `Option<Packed<(&(), u32)>>` was erronously not + // In this case, `Option<Packed<(&(), u32)>>` was erroneously not // marked as packed despite needing alignment `1` and containing // its `&()` discriminant, which has alignment larger than `1`. sanity_check_size((Some(Packed((&(), 0))), true)); diff --git a/src/test/run-pass/signal-alternate-stack-cleanup.rs b/src/test/run-pass/signal-alternate-stack-cleanup.rs index eae431aa404..ad099f82d13 100644 --- a/src/test/run-pass/signal-alternate-stack-cleanup.rs +++ b/src/test/run-pass/signal-alternate-stack-cleanup.rs @@ -33,7 +33,7 @@ extern fn send_signal() { fn main() { unsafe { - // Install signal hander that runs on alternate signal stack. + // Install signal handler that runs on alternate signal stack. let mut action: sigaction = std::mem::zeroed(); action.sa_flags = (SA_ONSTACK | SA_SIGINFO) as _; action.sa_sigaction = signal_handler as sighandler_t; diff --git a/src/test/rustdoc/inline_cross/auxiliary/macro-vis.rs b/src/test/rustdoc/inline_cross/auxiliary/macro-vis.rs index d4a9a9f379b..3fce62529c7 100644 --- a/src/test/rustdoc/inline_cross/auxiliary/macro-vis.rs +++ b/src/test/rustdoc/inline_cross/auxiliary/macro-vis.rs @@ -10,7 +10,7 @@ #![crate_name = "qwop"] -/// (writen on a spider's web) Some Macro +/// (written on a spider's web) Some Macro #[macro_export] macro_rules! some_macro { () => { diff --git a/src/test/ui/associated-types/associated-types-incomplete-object.rs b/src/test/ui/associated-types/associated-types-incomplete-object.rs index c1feb8ac459..9f1df14605b 100644 --- a/src/test/ui/associated-types/associated-types-incomplete-object.rs +++ b/src/test/ui/associated-types/associated-types-incomplete-object.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Check that the user gets an errror if they omit a binding from an +// Check that the user gets an error if they omit a binding from an // object type. pub trait Foo { diff --git a/src/test/ui/borrowck/issue-45983.rs b/src/test/ui/borrowck/issue-45983.rs index bcbe0d1ffc0..5ed425e958a 100644 --- a/src/test/ui/borrowck/issue-45983.rs +++ b/src/test/ui/borrowck/issue-45983.rs @@ -19,7 +19,7 @@ // revisions: ast migrate nll // Since we are testing nll (and migration) explicitly as a separate -// revisions, dont worry about the --compare-mode=nll on this test. +// revisions, don't worry about the --compare-mode=nll on this test. // ignore-compare-mode-nll diff --git a/src/test/ui/defaulted-never-note.rs b/src/test/ui/defaulted-never-note.rs index ac8ac85824e..b53ef0f5ba8 100644 --- a/src/test/ui/defaulted-never-note.rs +++ b/src/test/ui/defaulted-never-note.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// We need to opt inot the `!` feature in order to trigger the +// We need to opt into the `!` feature in order to trigger the // requirement that this is testing. #![feature(never_type)] diff --git a/src/test/ui/error-codes/E0401.stderr b/src/test/ui/error-codes/E0401.stderr index 5b66d109340..b088e8330e9 100644 --- a/src/test/ui/error-codes/E0401.stderr +++ b/src/test/ui/error-codes/E0401.stderr @@ -24,7 +24,7 @@ error[E0401]: can't use type parameters from outer function --> $DIR/E0401.rs:32:25 | LL | impl<T> Iterator for A<T> { - | ---- `Self` type implicitely declared here, on the `impl` + | ---- `Self` type implicitly declared here, on the `impl` ... LL | fn helper(sel: &Self) -> u8 { //~ ERROR E0401 | ------ ^^^^ use of type variable from outer function diff --git a/src/test/ui/imports/local-modularized-tricky-fail-2.rs b/src/test/ui/imports/local-modularized-tricky-fail-2.rs index afdebc4533f..1ae7ed268eb 100644 --- a/src/test/ui/imports/local-modularized-tricky-fail-2.rs +++ b/src/test/ui/imports/local-modularized-tricky-fail-2.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// `#[macro_export] macro_rules` that doen't originate from macro expansions can be placed +// `#[macro_export] macro_rules` that doesn't originate from macro expansions can be placed // into the root module soon enough to act as usual items and shadow globs and preludes. #![feature(decl_macro)] diff --git a/src/test/ui/issues/issue-31845.rs b/src/test/ui/issues/issue-31845.rs index 514255e4676..418754b9a24 100644 --- a/src/test/ui/issues/issue-31845.rs +++ b/src/test/ui/issues/issue-31845.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Checks lexical scopes cannot see through normal module boundries +// Checks lexical scopes cannot see through normal module boundaries fn f() { fn g() {} diff --git a/src/test/ui/issues/issue-45696-no-variant-box-recur.rs b/src/test/ui/issues/issue-45696-no-variant-box-recur.rs index da42e171fcc..8624dbd28dc 100644 --- a/src/test/ui/issues/issue-45696-no-variant-box-recur.rs +++ b/src/test/ui/issues/issue-45696-no-variant-box-recur.rs @@ -24,7 +24,7 @@ // run-pass -// This test has structs and functions that are by definiton unusable +// This test has structs and functions that are by definition unusable // all over the place, so just go ahead and allow dead_code #![allow(dead_code)] diff --git a/src/test/ui/issues/issue-50761.rs b/src/test/ui/issues/issue-50761.rs index b8a7a089c23..6c87d520934 100644 --- a/src/test/ui/issues/issue-50761.rs +++ b/src/test/ui/issues/issue-50761.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Confirm that we don't accidently divide or mod by zero in llvm_type +// Confirm that we don't accidentally divide or mod by zero in llvm_type // compile-pass diff --git a/src/test/ui/label/label_break_value_illegal_uses.rs b/src/test/ui/label/label_break_value_illegal_uses.rs index 18644033e4f..8315104d37f 100644 --- a/src/test/ui/label/label_break_value_illegal_uses.rs +++ b/src/test/ui/label/label_break_value_illegal_uses.rs @@ -10,7 +10,7 @@ #![feature(label_break_value)] -// These are forbidden occurences of label-break-value +// These are forbidden occurrences of label-break-value fn labeled_unsafe() { unsafe 'b: {} //~ ERROR expected one of `extern`, `fn`, or `{` diff --git a/src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.rs b/src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.rs index 20a2cbfd3aa..6b0ca2ce9e0 100644 --- a/src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.rs +++ b/src/test/ui/lifetimes/lifetime-errors/liveness-assign-imm-local-notes.rs @@ -9,8 +9,8 @@ // except according to those terms. // FIXME: Change to UI Test -// Check notes are placed on an assignment that can actually precede the current assigmnent -// Don't emmit a first assignment for assignment in a loop. +// Check notes are placed on an assignment that can actually precede the current assignment +// Don't emit a first assignment for assignment in a loop. // compile-flags: -Zborrowck=compare diff --git a/src/test/ui/lint/lint-unused-extern-crate.rs b/src/test/ui/lint/lint-unused-extern-crate.rs index 8f0b53fd599..4ef185ee71c 100644 --- a/src/test/ui/lint/lint-unused-extern-crate.rs +++ b/src/test/ui/lint/lint-unused-extern-crate.rs @@ -35,7 +35,7 @@ use lint_unused_extern_crate2::foo as bar; use other::*; mod foo { - // Test that this is unused even though an earler `extern crate` is used. + // Test that this is unused even though an earlier `extern crate` is used. extern crate lint_unused_extern_crate2; //~ ERROR unused extern crate } diff --git a/src/test/ui/rfc1598-generic-associated-types/shadowing.rs b/src/test/ui/rfc1598-generic-associated-types/shadowing.rs index 6cdcaf25683..ddc6a29a8f0 100644 --- a/src/test/ui/rfc1598-generic-associated-types/shadowing.rs +++ b/src/test/ui/rfc1598-generic-associated-types/shadowing.rs @@ -11,7 +11,7 @@ #![feature(generic_associated_types)] //FIXME(#44265): The lifetime shadowing and type parameter shadowing -// should cause an error. Now it compiles (errorneously) and this will be addressed +// should cause an error. Now it compiles (erroneously) and this will be addressed // by a future PR. Then remove the following: // compile-pass diff --git a/src/test/ui/rust-2018/async-ident-allowed.rs b/src/test/ui/rust-2018/async-ident-allowed.rs index 3bc468483bd..9a046bc6952 100644 --- a/src/test/ui/rust-2018/async-ident-allowed.rs +++ b/src/test/ui/rust-2018/async-ident-allowed.rs @@ -12,7 +12,7 @@ #![deny(rust_2018_compatibility)] -// Don't make a suggestion for a raw identifer replacement unless raw +// Don't make a suggestion for a raw identifier replacement unless raw // identifiers are enabled. fn main() { diff --git a/src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs b/src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs index 4706b9cbb09..81adf89fd43 100644 --- a/src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs +++ b/src/test/ui/single-use-lifetime/two-uses-in-fn-arguments.rs @@ -9,7 +9,7 @@ // except according to those terms. // Test that we DO NOT warn when lifetime name is used multiple -// argments, or more than once in a single argument. +// arguments, or more than once in a single argument. // // compile-pass diff --git a/src/test/ui/variadic/variadic-ffi-2.rs b/src/test/ui/variadic/variadic-ffi-2.rs index ec5669f6392..a5011c3abe7 100644 --- a/src/test/ui/variadic/variadic-ffi-2.rs +++ b/src/test/ui/variadic/variadic-ffi-2.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// ignore-arm stdcall isn't suppported +// ignore-arm stdcall isn't supported fn baz(f: extern "stdcall" fn(usize, ...)) { //~^ ERROR: variadic function must have C or cdecl calling convention diff --git a/src/test/ui/variadic/variadic-ffi.rs b/src/test/ui/variadic/variadic-ffi.rs index f245306f4d8..d81e61cac56 100644 --- a/src/test/ui/variadic/variadic-ffi.rs +++ b/src/test/ui/variadic/variadic-ffi.rs @@ -8,8 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// ignore-arm stdcall isn't suppported -// ignore-aarch64 stdcall isn't suppported +// ignore-arm stdcall isn't supported +// ignore-aarch64 stdcall isn't supported extern "stdcall" { fn printf(_: *const u8, ...); //~ ERROR: variadic function must have C or cdecl calling diff --git a/src/test/ui/where-clauses/where-for-self-2.rs b/src/test/ui/where-clauses/where-for-self-2.rs index bf8fc292173..6179bdb34a3 100644 --- a/src/test/ui/where-clauses/where-for-self-2.rs +++ b/src/test/ui/where-clauses/where-for-self-2.rs @@ -10,7 +10,7 @@ // Test that we can quantify lifetimes outside a constraint (i.e., including // the self type) in a where clause. Specifically, test that implementing for a -// specific lifetime is not enough to satisify the `for<'a> ...` constraint, which +// specific lifetime is not enough to satisfy the `for<'a> ...` constraint, which // should require *all* lifetimes. static X: &'static u32 = &42; |
