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

The Great Generics Generalisation: Clippy edition #2871

Merged
merged 4 commits into from
Jun 25, 2018

Conversation

flip1995
Copy link
Member

Fixes #2869

Resolves The conflicts produced by rust-lang/rust#48149, rust-lang/rust#51580 and rust-lang/rust#51726

r? @oli-obk

Addresses the errors produced by (re)moving, merging or renaming
structs, fields and methods by rust-lang/rust#48149 and rust-lang/rust#51580
Addresses the move/zip of Lifetimes and Types vectors from hir::PathParameters into the args vector of GenericArgs
@oli-obk oli-obk merged commit d4618e0 into rust-lang:master Jun 25, 2018
@flip1995 flip1995 deleted the gen_gen_nightly branch June 25, 2018 20:22
false
} else {
// FIXME(flip1995): messy, improve if there is a better option
// in the compiler
Copy link
Member

Choose a reason for hiding this comment

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

This is usually done with an iterator and matching on (it.next(), it.next()).

_ => None,
}).collect();
if types.len() == 1 {
ty_snippet = snippet_opt(cx, types[0].span);
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

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