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

E0559 needs to be updated to new format #36197

Closed
sophiajt opened this issue Sep 1, 2016 · 0 comments
Closed

E0559 needs to be updated to new format #36197

sophiajt opened this issue Sep 1, 2016 · 0 comments

Comments

@sophiajt
Copy link
Contributor

sophiajt commented Sep 1, 2016

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

E0559 needs a help converted to a span_label, updating this:

error[E0559]: struct variant `Field::Fool` has no field named `joke`
  --> src/test/compile-fail/E0559.rs:16:27
   |
16 |     let s = Field::Fool { joke: 0 }; //~ ERROR E0559
   |                           ^^^^
   |
help: did you mean `x`?
  --> src/test/compile-fail/E0559.rs:16:27
   |
16 |     let s = Field::Fool { joke: 0 }; //~ ERROR E0559
   |                           ^^^^

To:

error[E0559]: struct variant `Field::Fool` has no field named `joke`
  --> src/test/compile-fail/E0559.rs:16:27
   |
16 |     let s = Field::Fool { joke: 0 }; //~ ERROR E0559
   |                           ^^^^ did you mean `x`?
sophiajt pushed a commit to sophiajt/rust that referenced this issue Sep 6, 2016
Updated E0559 to new format

Refactored a method that printed one suggested field name,
into a method that returns an `Option` of a suggestion

(Updated test cases accordingly)

r? @jonathandturner

Closes rust-lang#36197
sophiajt pushed a commit to sophiajt/rust that referenced this issue Sep 6, 2016
Updated E0559 to new format

Refactored a method that printed one suggested field name,
into a method that returns an `Option` of a suggestion

(Updated test cases accordingly)

r? @jonathandturner

Closes rust-lang#36197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant