Skip to content

Do not include attributes in trait item spans. #24739

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

Merged
merged 1 commit into from
Apr 24, 2015
Merged

Conversation

nrc
Copy link
Member

@nrc nrc commented Apr 23, 2015

(And other kinds of items).

This brings trait/impl items in line with top-level items in this respect. It means we don't get the attributes when showing error messages for methods, etc. (a good thing, I think). Since attributes have spans it is still easy to create a span for the item + all attributes.

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@huonw
Copy link
Member

huonw commented Apr 23, 2015

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Apr 23, 2015

📌 Commit 17934e5 has been approved by huonw

@nrc nrc assigned huonw and unassigned alexcrichton Apr 23, 2015
Manishearth added a commit to Manishearth/rust that referenced this pull request Apr 24, 2015
 (And other kinds of items).

This brings trait/impl items in line with top-level items in this respect. It means we don't get the attributes when showing error messages for methods, etc. (a good thing, I think). Since attributes have spans it is still easy to create a span for the item + all attributes.
@bors bors merged commit 17934e5 into rust-lang:master Apr 24, 2015
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.

5 participants