-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix binder handling in unnecessary_to_owned
#11953
Conversation
r? @Alexendoo (rustbot has picked a reviewer for you, use r? to override) |
👍 @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
…troalbini [beta] Clippy beta backport PR towards stable, as beta was branched a day early and I missed the notification. - rust-lang/rust-clippy#11538 - rust-lang/rust-clippy#11756 - rust-lang/rust-clippy#11760 - rust-lang/rust-clippy#11953 r? `@pietroalbini`
…troalbini [beta] Clippy beta backport PR towards stable, as beta was branched a day early and I missed the notification. - rust-lang/rust-clippy#11538 - rust-lang/rust-clippy#11756 - rust-lang/rust-clippy#11760 - rust-lang/rust-clippy#11953 r? `@pietroalbini`
I think I've seen you make similar comments before (though I can't seem to find them). When is |
A binder is a combination of the list of variables which have yet to be bound, and an item which contains those variables (e.g. a type). As a rough guide to the two functions; For |
Makes perfect sense. Thanks! |
fixes #11952
The use of
rebind
instead ofEarlyBinder::bind
isn't technically needed, but it is the semantically correct operation.changelog: None