You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
src/sparsevec.rs:49:9: 49:15 error: cannot borrow `self.0` as mutable more than once at a time [E0499]
src/sparsevec.rs:49 self.0.extend((0..(i - len)).map(|_| None));
^~~~~~
src/sparsevec.rs:49 match self.0.get_mut(i) {
^~~~~~
src/sparsevec.rs:49 }
^
src/sparsevec.rs:49:9: 49:15 help: run `rustc --explain E0499` to see a detailed explanation
new:
error: cannot borrow `self.0` as mutable more than once at a time [--explain E0499]
--> src/sparsevec.rs:49:9
38 |> match self.0.get_mut(i) {
|> ------ first mutable borrow occurs here
...
49 |> self.0.extend((0..(i - len)).map(|_| None));
|> ^^^^^^ second mutable borrow occurs here
50 |> self.get_mut_or_put(i, f)
51 |> }
|> - first borrow ends here
The text was updated successfully, but these errors were encountered:
Fix for old school error issues, improvements to new school
This PR:
* Fixes some old school error issues, specifically #33559, #33543, #33366
* Improves wording borrowck errors with match patterns
* De-emphasize multi-line spans, so we don't color the single source character when we're trying to say "span starts here"
* Rollup of #33392 (which should help fix#33390)
r? @nikomatsakis
old:
new:
The text was updated successfully, but these errors were encountered: