Rollup merge of #68009 - wcampbell0x2a:spellcheck-librustc_error_codes, r=Centril

Spell check librustc_error_codes

Found one wrongly spelled error message and decided to check all the
error messages for wrongly spelled statements.
This commit is contained in:
Mazdak Farrokhzad 2020-01-09 00:22:17 +01:00 committed by GitHub
commit 1355fb58be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -136,7 +136,7 @@ type parameters, the number of monomorphized implementations the compiler
generates does not grow drastically, since the compiler will only generate an
implementation if the function is called with unparametrized substitutions
(i.e., substitutions where none of the substituted types are themselves
parametrized).
parameterized).
However, with trait objects we have to make a table containing _every_ object
that implements the trait. Now, if it has type parameters, we need to add

View File

@ -20,7 +20,7 @@ enum NightsWatch {
}
```
or you remove the integer represention of your enum:
or you remove the integer representation of your enum:
```
enum NightsWatch {}

View File

@ -36,7 +36,7 @@ impl Trait for Foo {
}
```
E0307 will be emitted by the compiler when using an invalid reciver type,
E0307 will be emitted by the compiler when using an invalid receiver type,
like in the following example:
```compile_fail,E0307

View File

@ -31,7 +31,7 @@ Since our new thread runs in parallel, the stack frame containing `x` and `y`
may well have disappeared by the time we try to use them. Even if we call
`thr.join()` within foo (which blocks until `thr` has completed, ensuring the
stack frame won't disappear), we will not succeed: the compiler cannot prove
that this behaviour is safe, and so won't let us do it.
that this behavior is safe, and so won't let us do it.
The solution to this problem is usually to switch to using a `move` closure.
This approach moves (or copies, where possible) data into the closure, rather

View File

@ -8,7 +8,7 @@ loop {
}
```
Please verify you spelt or declare the label correctly. Example:
Please verify you spelled or declared the label correctly. Example:
```
'a: loop {