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

Syntax extensions on trait and impl items. #21052

Merged
merged 1 commit into from
Jan 16, 2015
Merged

Conversation

nrc
Copy link
Member

@nrc nrc commented Jan 12, 2015

Allows modifiers to be used on methods, associated types, etc.

r? @sfackler

}

impl Annotatable {
pub fn attrs(&self) -> Vec<ast::Attribute> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not &[Attribute]?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works! (Pretty impressed rustc is able to figure out the lifetimes with that)

Allows modifiers to be used on methods, associated types, etc.
@nrc
Copy link
Member Author

nrc commented Jan 14, 2015

Fixed according to comment and rebased.

r? @sfackler

@sfackler
Copy link
Member

This seems okay for now, until we work out how we actually want to stabilize this stuff.

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 15, 2015
Allows modifiers to be used on methods, associated types, etc.

r? @sfackler
bors added a commit that referenced this pull request Jan 15, 2015
Allows modifiers to be used on methods, associated types, etc.

r? @sfackler
@bors bors merged commit 98d4711 into rust-lang:master Jan 16, 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.

3 participants