-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Conversation
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(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer vec![]
personally.
There was a problem hiding this comment.
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)
I fetched this code and verified that the updated Rust works for my case in gfx-rs. 👍 |
Fixes #21497 I don't know if this can be tested with built-in tests.
Fixes #21497
I don't know if this can be tested with built-in tests.