diff options
Diffstat (limited to 'src/librustc_data_structures/obligation_forest/mod.rs')
-rw-r--r-- | src/librustc_data_structures/obligation_forest/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_data_structures/obligation_forest/mod.rs b/src/librustc_data_structures/obligation_forest/mod.rs index 92cc398db50..ccf2a7f8159 100644 --- a/src/librustc_data_structures/obligation_forest/mod.rs +++ b/src/librustc_data_structures/obligation_forest/mod.rs @@ -187,11 +187,11 @@ impl<O: ForestObligation> ObligationForest<O> { pub fn new() -> ObligationForest<O> { ObligationForest { nodes: vec![], - done_cache: FxHashSet(), - waiting_cache: FxHashMap(), + done_cache: Default::default(), + waiting_cache: Default::default(), scratch: Some(vec![]), obligation_tree_id_generator: (0..).map(|i| ObligationTreeId(i)), - error_cache: FxHashMap(), + error_cache: Default::default(), } } @@ -303,7 +303,7 @@ impl<O: ForestObligation> ObligationForest<O> { self.error_cache .entry(node.obligation_tree_id) - .or_insert_with(|| FxHashSet()) + .or_default() .insert(node.obligation.as_predicate().clone()); } |