mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 13:33:31 +00:00
for_kv_map
This commit is contained in:
parent
882289b229
commit
2a500d5280
2 changed files with 1 additions and 2 deletions
|
@ -176,7 +176,6 @@ explicit_auto_deref = "allow"
|
|||
field_reassign_with_default = "allow"
|
||||
forget_non_drop = "allow"
|
||||
format_collect = "allow"
|
||||
for_kv_map = "allow"
|
||||
filter_map_bool_then = "allow"
|
||||
from_str_radix_10 = "allow"
|
||||
get_first = "allow"
|
||||
|
|
|
@ -1008,7 +1008,7 @@ impl InferenceContext<'_> {
|
|||
let mut deferred_closures = mem::take(&mut self.deferred_closures);
|
||||
let mut dependents_count: FxHashMap<ClosureId, usize> =
|
||||
deferred_closures.keys().map(|it| (*it, 0)).collect();
|
||||
for (_, deps) in &self.closure_dependencies {
|
||||
for deps in self.closure_dependencies.values() {
|
||||
for dep in deps {
|
||||
*dependents_count.entry(*dep).or_default() += 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue