-
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
Rustup #4857
Conversation
@matthewjasper could you have a look at this? Specifically the "fix categorizations" commit, I'm not sure if that's the right fix for the cases that were recursively looping Also, I'm not sure where I should be getting an infcx from, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I'm not sure where I should be getting an infcx from,
tcx.infer_ctxt(|| { ... })
?
tcx.infer_ctxt().enter(|| { ... })
clippy_lints/src/escape.rs
Outdated
fn consume(&mut self, cmt: &cmt_<'tcx>, mode: ConsumeMode) { | ||
if let Categorization::Local(lid) = cmt.cat { | ||
fn consume(&mut self, cmt: &Place<'tcx>, mode: ConsumeMode) { | ||
if let PlaceBase::Local(lid) = cmt.base { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this file there should also be a check that cmt.projections
is empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added it to every method of the EUV. It didn't break anything, so I think this should be ok?
@bors r=matthewjasper,oli-obk |
📌 Commit 604e6ba has been approved by |
Rustup From rust-lang/rust#66246 changelog: none
☀️ Test successful - checks-travis, status-appveyor |
From rust-lang/rust#66246
changelog: none