internal: fix crash inside filter_unnecessary_bounds
for a missing generic param
This commit is contained in:
parent
57fda121d8
commit
2d09d69fbe
@ -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);
|
||||
|
||||
// Not pretty, but effective. If only there were `Vec::retain_index()`...
|
||||
|
Loading…
x
Reference in New Issue
Block a user