Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add long diagnostics for E0062, E0063 and E0137 #25200

Merged
merged 3 commits into from May 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/librustc/diagnostics.rs
Expand Up @@ -271,6 +271,12 @@ fn main() {
See also http://doc.rust-lang.org/book/unsafe.html
"##,

E0137: r##"
This error indicates that the compiler found multiple functions with the
#[main] attribute. This is an error because there must be a unique entry point
into a Rust program.
"##,

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
Expand Down Expand Up @@ -800,7 +806,6 @@ register_diagnostics! {
E0134,
E0135,
E0136,
E0137,
E0138,
E0139,
E0261, // use of undeclared lifetime name
Expand Down
14 changes: 12 additions & 2 deletions src/librustc_typeck/diagnostics.rs
Expand Up @@ -34,6 +34,18 @@ let x_is_nonzero = x as bool;
```
"##,

E0062: r##"
This error indicates that during an attempt to build a struct or struct-like
enum variant, one of the fields was specified more than once. Each field should
be specified exactly one time.
"##,

E0063: r##"
This error indicates that during an attempt to build a struct or struct-like
enum variant, one of the fields was not provided. Each field should be specified
exactly once.
"##,

E0081: r##"
Enum discriminants are used to differentiate enum variants stored in memory.
This error indicates that the same value was used for two or more variants,
Expand Down Expand Up @@ -136,8 +148,6 @@ register_diagnostics! {
E0059,
E0060,
E0061,
E0062,
E0063,
E0066,
E0067,
E0068,
Expand Down