mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +00:00
internal: fix crash inside filter_unnecessary_bounds
for a missing generic param
This commit is contained in:
parent
57fda121d8
commit
2d09d69fbe
1 changed files with 1 additions and 1 deletions
|
@ -908,7 +908,7 @@ fn filter_unnecessary_bounds(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let starting_nodes = necessary_params.iter().map(|param| param_map[param]);
|
let starting_nodes = necessary_params.iter().flat_map(|param| param_map.get(param).copied());
|
||||||
let reachable = graph.compute_reachable_nodes(starting_nodes);
|
let reachable = graph.compute_reachable_nodes(starting_nodes);
|
||||||
|
|
||||||
// Not pretty, but effective. If only there were `Vec::retain_index()`...
|
// Not pretty, but effective. If only there were `Vec::retain_index()`...
|
||||||
|
|
Loading…
Reference in a new issue