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

Clean up a bunch of build warnings. #6937

Closed
wants to merge 1 commit into from

Conversation

msullivan
Copy link
Contributor

No description provided.

@msullivan
Copy link
Contributor Author

Ok, I think I've fixed the failures. Something is rotten with the unused imports diagnostic. r?

@bors bors closed this Jun 6, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 22, 2021
Improve `map_entry` suggestion

fixes: rust-lang#5176
fixes: rust-lang#4674
fixes: rust-lang#4664
fixes: rust-lang#1450

Still need to handle the value returned by `insert` correctly.

changelog: Improve `map_entry` suggestion. Will now suggest `or_insert`, `insert_with` or `match _.entry(_)` as appopriate.
changelog: Fix `map_entry` false positives where the entry api can't be used. e.g. when the map is used for multiple things.
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