Add suggestion to use closure argument instead of a capture on borrowck error#110061
Add suggestion to use closure argument instead of a capture on borrowck error#110061bors merged 5 commits intorust-lang:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
|
@rustbot ready |
ea6fc6c to
0c8ebc9
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
☔ The latest upstream changes (presumably #110405) made this pull request unmergeable. Please resolve the merge conflicts. |
385d50c to
e1b56cb
Compare
This comment has been minimized.
This comment has been minimized.
d814747 to
8c4596d
Compare
|
☔ The latest upstream changes (presumably #110458) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r? @cjgillot |
8c4596d to
b47cd78
Compare
|
r=me with review commits squashed into main commits |
b47cd78 to
4daa932
Compare
4daa932 to
5d41a46
Compare
While it might *seem* that this does something, it actually doesn't.
`mut_borrow_of_mutable_ref` returns a `bool` that is ignored by the
let-else. This was basically
```rust
if !self.body.local_decls.get(local).is_some() {
return
}
```
Which is pretty useless
We use caller information to track where a diagnostic was created, so all "helper" diagnostic functions should use `#[track_caller]`
5d41a46 to
cac143f
Compare
|
@bors r=cjgillot I've cleaned-up the git history |
|
☀️ Test successful - checks-actions |
|
Finished benchmarking commit (b9fd498): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
Fixes #109271
r? @compiler-errors
This should probably be refined a bit, but opening a PR so that I don't forget anything.