Skip to content

Commit ee81739

Browse files
committedOct 19, 2018
Deprecate the FxHashMap() and FxHashSet() constructor function hack
1 parent 74ff7dc commit ee81739

File tree

115 files changed

+318
-333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+318
-333
lines changed
 

‎src/librustc/dep_graph/cgu_reuse_tracker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ pub struct CguReuseTracker {
5151
impl CguReuseTracker {
5252
pub fn new() -> CguReuseTracker {
5353
let data = TrackerData {
54-
actual_reuse: FxHashMap(),
55-
expected_reuse: FxHashMap(),
54+
actual_reuse: FxHashMap::default(),
55+
expected_reuse: FxHashMap::default(),
5656
};
5757

5858
CguReuseTracker {

‎src/librustc/dep_graph/dep_tracking_map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl<M: DepTrackingMapConfig> DepTrackingMap<M> {
3636
DepTrackingMap {
3737
phantom: PhantomData,
3838
graph,
39-
map: FxHashMap(),
39+
map: FxHashMap::default(),
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)