diff options
| author | bors <bors@rust-lang.org> | 2020-04-23 14:40:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-04-23 14:40:20 +0000 |
| commit | 413a12909f3b149af17d75268ed4a136afb82c36 (patch) | |
| tree | 8e0197c08f480cf9e67e32e05b25afa61fe043c8 /src/librustc_error_codes/error_codes | |
| parent | 66f7a5d92f5adb9053bf66e0bf8f6d31d404870d (diff) | |
| parent | 47e2687a4eaf190ebd7eebdee7c32e839a6f14cf (diff) | |
| download | rust-413a12909f3b149af17d75268ed4a136afb82c36.tar.gz rust-413a12909f3b149af17d75268ed4a136afb82c36.zip | |
Auto merge of #71467 - Dylan-DPC:rollup-d1os8ug, r=Dylan-DPC
Rollup of 6 pull requests Successful merges: - #71005 (Reading from the return place is fine) - #71198 (Const check/promotion cleanup and sanity assertion) - #71396 (Improve E0308 error message wording again) - #71452 (Remove outdated reference to interpreter snapshotting) - #71454 (Inline some function docs in `core::ptr`) - #71461 (Improve E0567 explanation) Failed merges: r? @ghost
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0308.md | 9 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0567.md | 6 |
2 files changed, 6 insertions, 9 deletions
diff --git a/src/librustc_error_codes/error_codes/E0308.md b/src/librustc_error_codes/error_codes/E0308.md index b2c84370490..e2c40f03019 100644 --- a/src/librustc_error_codes/error_codes/E0308.md +++ b/src/librustc_error_codes/error_codes/E0308.md @@ -12,8 +12,7 @@ let x: i32 = "I am not a number!"; // type `i32` assigned to variable `x` ``` -This error occurs when the compiler was unable to infer the concrete type of a -variable. It can happen in several cases, the most common being a mismatch -between the type that the compiler inferred for a variable based on its -initializing expression, on the one hand, and the type the author explicitly -assigned to the variable, on the other hand. +This error occurs when the compiler is unable to infer the concrete type of a +variable. It can occur in several cases, the most common being a mismatch +between two types: the type the author explicitly assigned, and the type the +compiler inferred. diff --git a/src/librustc_error_codes/error_codes/E0567.md b/src/librustc_error_codes/error_codes/E0567.md index ec1ed03c126..05cf8fed031 100644 --- a/src/librustc_error_codes/error_codes/E0567.md +++ b/src/librustc_error_codes/error_codes/E0567.md @@ -6,8 +6,7 @@ Erroneous code example: #![feature(optin_builtin_traits)] auto trait Generic<T> {} // error! - -fn main() {} +# fn main() {} ``` Since an auto trait is implemented on all existing types, the @@ -20,6 +19,5 @@ To fix this issue, just remove the generics: #![feature(optin_builtin_traits)] auto trait Generic {} // ok! - -fn main() {} +# fn main() {} ``` |
