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

Improve the spans of some deriving traits #11834

Merged
merged 3 commits into from
Jan 27, 2014
Merged

Conversation

huonw
Copy link
Member

@huonw huonw commented Jan 27, 2014

I'd forgotten to update them when I changed this a while ago; it now displays error messages linked to the struct/variant field, rather than the #[deriving(Trait)] line, for all traits.

This also adds a very large number of autogenerated tests. I can easily remove/tone down that commit if necessary.

This makes error messages about (e.g.) `#[deriving(Clone)] struct Foo {
x: Type }` point at `x: Type` rather than `Clone` in the header (while
still referring to the `#[deriving(Clone)]` in the expansion info).
bors added a commit that referenced this pull request Jan 27, 2014
I'd forgotten to update them when I changed this a while ago; it now displays error messages linked to the struct/variant field, rather than the `#[deriving(Trait)]` line, for all traits.

This also adds a very large number of autogenerated tests. I can easily remove/tone down that commit if necessary.
@bors bors closed this Jan 27, 2014
@bors bors merged commit d9a204b into rust-lang:master Jan 27, 2014
@huonw huonw deleted the deriving-spans branch January 27, 2014 11:20
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

Successfully merging this pull request may close these issues.

3 participants