mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
rustc: Add long diagnostics for E0152
This commit is contained in:
committed by
Steve Klabnik
parent
0afdab11ec
commit
521ae488db
@@ -112,6 +112,20 @@
|
||||
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 @@
|
||||
E0137,
|
||||
E0138,
|
||||
E0139,
|
||||
E0152,
|
||||
E0158,
|
||||
E0161,
|
||||
E0170,
|
||||
|
||||
Reference in New Issue
Block a user