Skip to content

Commit

Permalink
Rollup merge of rust-lang#68009 - wcampbell0x2a:spellcheck-librustc_e…
Browse files Browse the repository at this point in the history
…rror_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.
  • Loading branch information
Centril authored Jan 8, 2020
2 parents 91d5fba + c9a55fe commit 1355fb5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0038.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0084.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0307.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0373.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_error_codes/error_codes/E0426.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1355fb5

Please sign in to comment.