Skip to content

Monomorphic trait coercion #5597

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

Closed

Conversation

pcwalton
Copy link
Contributor

r? @nikomatsakis (last commit)

@pcwalton
Copy link
Contributor Author

Added polymorphic trait coercion too. r? @nikomatsakis

@pcwalton
Copy link
Contributor Author

r? @nikomatsakis

@sanxiyn
Copy link
Member

sanxiyn commented Jun 5, 2013

What is the current status?

@catamorphism
Copy link
Contributor

Closing old PRs.

bors added a commit that referenced this pull request Dec 27, 2013
tesuji pushed a commit to tesuji/rustc that referenced this pull request Jun 4, 2020
New lint: iter_next_slice

Hello, this is a work-in-progress PR for issue: rust-lang/rust-clippy#5572

I have implemented lint to replace `iter().next()` for `slice[index..]` and `array` with `get(index)` and `get(0)` respectively. However since I made a lot of changes, I would like to request some feedback before continuing so that I could fix mistakes.

Thank you!

---

changelog: implement `iter_next_slice` lint and test, and modify `needless_continues`, `for_loop_over_options_result` UI tests since they have `iter().next()`
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.

4 participants