Auto merge of #23830 - petrochenkov:spellcheck, r=steveklabnik

With help of https://github.com/lucasdemarchi/codespell

r? @steveklabnik
This commit is contained in:
bors 2015-03-29 22:39:46 +00:00
commit d8be84eb44
23 changed files with 24 additions and 24 deletions

2
configure vendored
View file

@ -404,7 +404,7 @@ case $CFG_OSTYPE in
CFG_OSTYPE=pc-windows-gnu
;;
# Thad's Cygwin identifers below
# Thad's Cygwin identifiers below
# Vista 32 bit
CYGWIN_NT-6.0)

View file

@ -179,7 +179,7 @@ define CFG_MAKE_TOOLCHAIN
ifeq ($$(findstring $(HOST_$(1)),arm aarch64 mips mipsel powerpc),)
# On Bitrig, we need the relocation model to be PIC for everthing
# On Bitrig, we need the relocation model to be PIC for everything
ifeq (,$(filter $(OSTYPE_$(1)),bitrig))
LLVM_MC_RELOCATION_MODEL="pic"
else

View file

@ -132,7 +132,7 @@ endef
# on $$(TSREQ$(1)_T_$(2)_H_$(3)), to ensure that no products will be
# put into the target area until after the get-snapshot.py script has
# had its chance to clean it out; otherwise the other products will be
# inadvertantly included in the clean out.
# inadvertently included in the clean out.
SNAPSHOT_RUSTC_POST_CLEANUP=$(HBIN0_H_$(CFG_BUILD))/rustc$(X_$(CFG_BUILD))
define TARGET_HOST_RULES

View file

@ -170,7 +170,7 @@ let obj = Box::new(graph) as Box<Graph>;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
We cant create a trait object like this, becuase we dont know the associated
We cant create a trait object like this, because we dont know the associated
types. Instead, we can write this:
```rust

View file

@ -529,7 +529,7 @@ This will create documentation for bar both inside the documentation for the
crate `foo`, as well as the documentation for your crate. It will use the same
documentation in both places.
This behavior can be supressed with `no_inline`:
This behavior can be suppressed with `no_inline`:
```ignore
extern crate foo;

View file

@ -335,7 +335,7 @@ case $CFG_OSTYPE in
MINGW32*)
CFG_OSTYPE=pc-mingw32
;;
# Thad's Cygwin identifers below
# Thad's Cygwin identifiers below
# Vista 32 bit
CYGWIN_NT-6.0)
@ -437,7 +437,7 @@ CFG_TMP_DIR=$(mktemp -d 2>/dev/null \
|| create_tmp_dir)
# If we're saving nightlies and we didn't specify which one, grab the latest
# verison from the perspective of the server. Buildbot has typically finished
# version from the perspective of the server. Buildbot has typically finished
# building and uploading by ~8UTC, but we want to include a little buffer.
#
# FIXME It would be better to use the known most recent nightly that has been

View file

@ -476,7 +476,7 @@ unsafe impl<'a, T: Send + ?Sized> Send for &'a mut T {}
/// particular, thanks to the `Reflect` bound, callers know that a
/// function declared like `fn bar<T>(...)` will always act in
/// precisely the same way no matter what type `T` is supplied,
/// beacuse there are no bounds declared on `T`. (The ability for a
/// because there are no bounds declared on `T`. (The ability for a
/// caller to reason about what a function may do based solely on what
/// generic bounds are declared is often called the ["parametricity
/// property"][1].)

View file

@ -83,7 +83,7 @@
//! - `Sub32` (`0d`): 4-byte unsigned integer for supplementary information.
//! Those two tags normally occur as the first subdocument of certain tags,
//! namely `Enum`, `Vec` and `Map`, to provide a variant or size information.
//! They can be used interchangably.
//! They can be used interchangeably.
//!
//! Predefined tags with an explicit length:
//!

View file

@ -157,7 +157,7 @@ pub struct TargetOptions {
/// particular running dsymutil and some other stuff like `-dead_strip`. Defaults to false.
pub is_like_osx: bool,
/// Whether the target toolchain is like Windows'. Only useful for compiling against Windows,
/// only realy used for figuring out how to find libraries, since Windows uses its own
/// only really used for figuring out how to find libraries, since Windows uses its own
/// library naming convention. Defaults to false.
pub is_like_windows: bool,
/// Whether the target toolchain is like Android's. Only useful for compiling against Android.

View file

@ -86,7 +86,7 @@ fn cmp(&self, other: &ModuleSummary) -> Ordering {
}
}
// is the item considered publically visible?
// is the item considered publicly visible?
fn visible(item: &Item) -> bool {
match item.inner {
ImplItem(_) => true,

View file

@ -1511,7 +1511,7 @@ fn truncate_works() {
assert_eq!(v, b"foobar\0\0\0\0".to_vec());
// Truncate to a smaller length, don't seek, and then write something.
// Ensure that the intermediate zeroes are all filled in (we're seeked
// Ensure that the intermediate zeroes are all filled in (we have `seek`ed
// past the end of the file).
check!(file.set_len(2));
assert_eq!(check!(file.metadata()).len(), 2);

View file

@ -1532,7 +1532,7 @@ fn truncate_works() {
b"foobar\0\0\0\0".to_vec());
// Truncate to a smaller length, don't seek, and then write something.
// Ensure that the intermediate zeroes are all filled in (we're seeked
// Ensure that the intermediate zeroes are all filled in (we have `seek`ed
// past the end of the file).
check!(file.truncate(2));
assert_eq!(check!(file.stat()).size, 2);

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Verify that single-variant enums cant be de-referenced
// Verify that single-variant enums can't be de-referenced
// Regression test for issue #9814
enum Foo { Bar(isize) }

View file

@ -53,7 +53,7 @@ enum Univariant<T> {
fn main() {
// In order to avoid endianess trouble all of the following test values consist of a single
// In order to avoid endianness trouble all of the following test values consist of a single
// repeated byte. This way each interpretation of the union should look the same, no matter if
// this is a big or little endian machine.

View file

@ -71,7 +71,7 @@ enum Univariant<T64> {
fn main() {
// In order to avoid endianess trouble all of the following test values consist of a single
// In order to avoid endianness trouble all of the following test values consist of a single
// repeated byte. This way each interpretation of the union should look the same, no matter if
// this is a big or little endian machine.

View file

@ -66,7 +66,7 @@ enum Univariant {
fn main() {
// In order to avoid endianess trouble all of the following test values consist of a single
// In order to avoid endianness trouble all of the following test values consist of a single
// repeated byte. This way each interpretation of the union should look the same, no matter if
// this is a big or little endian machine.

View file

@ -68,7 +68,7 @@ enum Univariant {
fn main() {
// In order to avoid endianess trouble all of the following test values consist of a single
// In order to avoid endianness trouble all of the following test values consist of a single
// repeated byte. This way each interpretation of the union should look the same, no matter if
// this is a big or little endian machine.

View file

@ -68,7 +68,7 @@ enum Univariant {
fn main() {
// In order to avoid endianess trouble all of the following test values consist of a single
// In order to avoid endianness trouble all of the following test values consist of a single
// repeated byte. This way each interpretation of the union should look the same, no matter if
// this is a big or little endian machine.

View file

@ -59,7 +59,7 @@ enum Univariant {
fn main() {
// In order to avoid endianess trouble all of the following test values consist of a single
// In order to avoid endianness trouble all of the following test values consist of a single
// repeated byte. This way each interpretation of the union should look the same, no matter if
// this is a big or little endian machine.

View file

@ -12,5 +12,5 @@
fn foo_method(&self) -> &'static str { return "i am very similiar to foo."; }
fn foo_method(&self) -> &'static str { return "i am very similar to foo."; }
/* nest::S::foo_method */

View file

@ -22,7 +22,7 @@ pub fn foo() -> &'static str { "i am a foo." }
struct S;
impl S {
fn foo_method(&self) -> &'static str {
return "i am very similiar to foo.";
return "i am very similar to foo.";
}
}
}

View file

@ -52,7 +52,7 @@ pub fn sleeper() -> Process {
fn test_destroy_twice() {
let mut p = sleeper();
succeed!(p.signal_exit()); // this shouldnt crash...
succeed!(p.signal_exit()); // this shouldn't crash...
let _ = p.signal_exit(); // ...and nor should this (and nor should the destructor)
}

View file

@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Test for an ICE that occured when a default method implementation
// Test for an ICE that occurred when a default method implementation
// was applied to a type that did not meet the prerequisites. The
// problem occurred specifically because normalizing
// `Self::Item::Target` was impossible in this case.