diff options
| author | Chris Wong <lambda.fairy@gmail.com> | 2015-04-15 11:31:20 +1200 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-04-16 22:23:36 -0400 |
| commit | 521ae488db40b6b136bc38b468fcdaf48033c8a4 (patch) | |
| tree | 878cdde4d2f68ab2c963410a90f4640c2bdb2cdf /src | |
| parent | 0afdab11ec42ccf5dbe12cd37f71f30cca581f14 (diff) | |
| download | rust-521ae488db40b6b136bc38b468fcdaf48033c8a4.tar.gz rust-521ae488db40b6b136bc38b468fcdaf48033c8a4.zip | |
rustc: Add long diagnostics for E0152
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc/diagnostics.rs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 938a74382e2..19006578767 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -112,6 +112,20 @@ reference when using guards or refactor the entire expression, perhaps by putting the condition inside the body of the arm. "##, +E0152: r##" +Lang items are already implemented in the standard library. Unless you are +writing a free-standing application (e.g. a kernel), you do not need to provide +them yourself. + +You can build a free-standing crate by adding `#![no_std]` to the crate +attributes: + +#![feature(no_std)] +#![no_std] + +See also https://doc.rust-lang.org/book/no-stdlib.html +"##, + E0162: r##" An if-let pattern attempts to match the pattern, and enters the body if the match was succesful. If the match is irrefutable (when it cannot fail to match), @@ -256,7 +270,6 @@ register_diagnostics! { E0137, E0138, E0139, - E0152, E0158, E0161, E0170, |
