Skip to content

Associated types support for deriving::TraitDef #21614

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
Jan 26, 2015
Merged

Conversation

kvark
Copy link
Contributor

@kvark kvark commented Jan 25, 2015

Fixes #21497

I don't know if this can be tested with built-in tests.

@rust-highfive
Copy link
Contributor

r? @sfackler

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

@@ -51,7 +51,8 @@ pub fn expand_deriving_bound<F>(cx: &mut ExtCtxt,
path: Path::new(vec!("std", "marker", name)),
additional_bounds: Vec::new(),
generics: LifetimeBounds::empty(),
methods: vec!()
methods: Vec::new(),
associated_types: Vec::new(),
Copy link
Member

Choose a reason for hiding this comment

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

I prefer vec![] personally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

either way it is now more consistent (used to be both Vec::new() and vec!() here)

@huonw huonw assigned huonw and unassigned sfackler Jan 25, 2015
@sectopod
Copy link

I fetched this code and verified that the updated Rust works for my case in gfx-rs. 👍

@kvark
Copy link
Contributor Author

kvark commented Jan 26, 2015

@sectopod neat, thanks!

@huonw anything else I need to fix/add?

@huonw
Copy link
Member

huonw commented Jan 26, 2015

Nope, looks good.

@bors: r+ e563215

bors added a commit that referenced this pull request Jan 26, 2015
Fixes #21497 

I don't know if this can be tested with built-in tests.
@bors
Copy link
Collaborator

bors commented Jan 26, 2015

⌛ Testing commit e563215 with merge 16286f5...

@bors bors merged commit e563215 into rust-lang:master Jan 26, 2015
@kvark kvark deleted the typedef branch January 27, 2015 04:54
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.

Add support for associated items when using deriving::generic::TraitDef
6 participants