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

Incorrect spans for tuple struct fields #50578

Closed
estebank opened this issue May 9, 2018 · 0 comments
Closed

Incorrect spans for tuple struct fields #50578

estebank opened this issue May 9, 2018 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@estebank
Copy link
Contributor

estebank commented May 9, 2018

As identified in a recent PR, tuple struct fields have spans including trailing characters (, and )):

error[E0204]: the trait `Copy` may not be implemented for this type
 --> src/main.rs:1:17
  |
1 | #[derive(Clone, Copy)]
  |                 ^^^^
2 | struct Foo(NotDefined, <i32 as Iterator>::Item, Vec<i32>, String);
  |            ----------- this field does not implement `Copy`
@estebank estebank added the A-diagnostics Area: Messages for errors, warnings, and lints label May 9, 2018
alexcrichton added a commit to alexcrichton/rust that referenced this issue May 10, 2018
Fix tuple struct field spans

Fix rust-lang#50578. Will have a merge conflict with rust-lang#50536.
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

1 participant