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

E0370 needs to be updated to new format #35634

Closed
sophiajt opened this issue Aug 13, 2016 · 0 comments
Closed

E0370 needs to be updated to new format #35634

sophiajt opened this issue Aug 13, 2016 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@sophiajt
Copy link
Contributor

From: src/test/compile-fail/E0370.rs

E0370 needs a span_label, an updated title, and a new note, changing it from:

error[E0370]: enum discriminant overflowed on value after 9223372036854775807i64; set explicitly via Y = -9223372036854775808i64 if that is desired outcome
  --> src/test/compile-fail/E0370.rs:17:5
   |
17 |     Y, //~ ERROR E0370
   |     ^ 

To:

error[E0370]: enum overflowed
  --> src/test/compile-fail/E0370.rs:17:5
   |
17 |     Y, //~ ERROR E0370
   |     ^ overflowed after 9223372036854775807i64
   |
   = note: explicitly set `Y = -9223372036854775808i64` if that is desired outcome
@bstrie bstrie added the A-diagnostics Area: Messages for errors, warnings, and lints label Aug 24, 2016
Manishearth added a commit to Manishearth/rust that referenced this issue Oct 1, 2016
…handturner

Update E0035, E0036 and E0370 to new error format

Fixes rust-lang#35634.
Fixes rust-lang#35206.
Fixes rust-lang#35207.

r? @jonathandturner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

2 participants