-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix(while_let_on_iterator): avoid .by_ref() in &mut self trait methods #16029
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
base: stable
Are you sure you want to change the base?
Conversation
…mes (rust-lang#15847) changelog: none
This should address rust-lang#13099 for the let_unit test. changelog: [manual_assert]: Updated manual_assert to use multipart_suggestions where appropriate
Some methods lints were handled in the `methods` module outside the `check_methods()` function.
Some methods lints were handled in the `methods` module outside the `check_methods()` function. changelog: none
it's now just the first arm
changelog: [`unnecessary_option_map_or_else`]: Added lint unnecessary_option_map_or_else. As suggested in the issue description, the implementation takes as reference the issue rust-lang#7328. The tests for lints `option_if_let_else` and `or_fun_call` needed to be adjusted to comply with new lint. fixes rust-lang#14588
I'll still take care of my currently-assigned reviews. Edit: Sorry Philipp, I forgot to r? ghost changelog:none
…-lang#15849) changelog: [`expl_impl_clone_on_copy`]: honor `allow`/`expect` attributes on both the type declaration and the `impl` Fixes rust-lang#15842 r? @blyxyas
Closes rust-lang#15555 changelog: [`use_self`]: Check structs and enums
…#15859) changelog: none
this destructuring is.. a bit weird
misc stuff I found while working on rust-lang#15343. Not sure about the `P` part, but the rest should be fine changelog: none
For rust-lang#15569 changelog: none
Needed to split the lint crate. Both the method and loop versions of the lint should also behave the same now. changelog: None
…ons (rust-lang#15930) Reduces boilerplate a bit changelog: none
Closes rust-lang#15968 changelog: [`replace_box`] fix FP when the box is moved r? samueltardieu As you wish <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_SUMMARY_START --> ### Summary Notes - [Beta-nomination](rust-lang#15984 (comment)) by [samueltardieu](https://github.com/samueltardieu) *Managed by `@rustbot`—see [help](https://forge.rust-lang.org/triagebot/note.html) for details* <!-- TRIAGEBOT_SUMMARY_END --> <!-- TRIAGEBOT_END -->
…-lang#16006) Fixes rust-lang#15987 changelog: [`let_and_return`]: disallow _any_ text between let and return
The "bad" example in the `missing_transmute_annotations` example didn't actually trigger the lint and so wasn't a "bad" example. This PR replaces it with an actual "bad" example. It was discussed on zulip [here](https://rust-lang.zulipchat.com/#narrow/channel/257328-clippy/topic/missing_transmute_annotations/near/547657390). changelog: Fix `missing_transmute_annotations` example r? @Centri3
|
Some changes occurred in clippy_lints/src/doc cc @notriddle |
|
r? @Alexendoo rustbot has assigned @Alexendoo. Use |
|
It looks like your branch https://github.com/KDhruv3/rust-clippy/tree/fix/while-let-on-iterator doesn't have any commits past https://github.com/rust-lang/rust-clippy/commits/master/ All the listed commits here are because the PR is opened against the |
Closes #16019