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

E0496 needs to be updated to new format #36000

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

E0496 needs to be updated to new format #36000

sophiajt opened this issue Aug 25, 2016 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@sophiajt
Copy link
Contributor

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

E0496 needs a span_label and a span_note converted to a span_label, updating this:

error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
  --> src/test/compile-fail/E0496.rs:16:10
   |
16 |     fn f<'a>(x: &'a i32) { //~ ERROR E0496
   |          ^^
   |
note: shadowed lifetime `'a` declared here
  --> src/test/compile-fail/E0496.rs:15:6
   |
15 | impl<'a> Foo<'a> {
   |      ^^

To:

error[E0496]: lifetime name `'a` shadows a lifetime name that is already in scope
  --> src/test/compile-fail/E0496.rs:16:10
   |
15 | impl<'a> Foo<'a> {
   |      -- first declared here
16 |     fn f<'a>(x: &'a i32) { //~ ERROR E0496
   |          ^^ lifetime 'a already in scope
@brson brson added E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. C-enhancement Category: An issue proposing an enhancement or a PR with one. A-diagnostics Area: Messages for errors, warnings, and lints T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 26, 2016
Manishearth added a commit to Manishearth/rust that referenced this issue Sep 5, 2016
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 C-enhancement Category: An issue proposing an enhancement or a PR with one. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants