Skip to content

E0451 needs to be updated to new format #35928

New issue

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

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

Already on GitHub? # to your account

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

E0451 needs to be updated to new format #35928

sophiajt opened this issue Aug 23, 2016 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

Comments

@sophiajt
Copy link
Contributor

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

E0451 needs a span_label, updating it from:

error[E0451]: field `b` of struct `Bar::Foo` is private
  --> src/test/compile-fail/E0451.rs:19:13
   |
19 |     let f = Bar::Foo{ a: 0, b: 0 }; //~ ERROR E0451
   |             ^^^^^^^^^^^^^^^^^^^^^^

To:

error[E0451]: field `b` of struct `Bar::Foo` is private
  --> src/test/compile-fail/E0451.rs:19:13
   |
19 |     let f = Bar::Foo{ a: 0, b: 0 }; //~ ERROR E0451
   |             ^^^^^^^^^^^^^^^^^^^^^^ field `b` is private

Bonus (though this may be tricky): just underline the private field

error[E0451]: field `b` of struct `Bar::Foo` is private
  --> src/test/compile-fail/E0451.rs:19:13
   |
19 |     let f = Bar::Foo{ a: 0, b: 0 }; //~ ERROR E0451
   |                             ^^^^ field `b` is private
@bstrie bstrie added the A-diagnostics Area: Messages for errors, warnings, and lints label Aug 24, 2016
@brson brson added the E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. label Aug 26, 2016
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Aug 30, 2016
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this issue Aug 30, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

3 participants