summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2018-10-16 10:44:26 +0200
committerOliver Scherer <github35764891676564198441@oli-obk.de>2018-10-19 14:34:44 +0200
commitee81739dc1e0f1c4dff9480b52528fb688ef9251 (patch)
tree8d0b81036ac5d144394a8e324e539072e4541d8e /src/libsyntax
parent74ff7dcb1388e60a613cd6050bcd372a3cc4998b (diff)
downloadrust-ee81739dc1e0f1c4dff9480b52528fb688ef9251.tar.gz
rust-ee81739dc1e0f1c4dff9480b52528fb688ef9251.zip
Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs2
-rw-r--r--src/libsyntax/source_map.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 84122688c83..a110248439e 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -1930,7 +1930,7 @@ pub fn get_features(span_handler: &Handler, krate_attrs: &[ast::Attribute],
     let incomplete_features = ["generic_associated_types"];
 
     let mut features = Features::new();
-    let mut edition_enabled_features = FxHashMap();
+    let mut edition_enabled_features = FxHashMap::default();
 
     for &edition in ALL_EDITIONS {
         if edition <= crate_edition {
diff --git a/src/libsyntax/source_map.rs b/src/libsyntax/source_map.rs
index 7ee58350621..c1274e74059 100644
--- a/src/libsyntax/source_map.rs
+++ b/src/libsyntax/source_map.rs
@@ -145,7 +145,7 @@ impl SourceMap {
         SourceMap {
             files: Lock::new(SourceMapFiles {
                 file_maps: Vec::new(),
-                stable_id_to_source_file: FxHashMap(),
+                stable_id_to_source_file: FxHashMap::default(),
             }),
             file_loader: Box::new(RealFileLoader),
             path_mapping,
@@ -168,7 +168,7 @@ impl SourceMap {
         SourceMap {
             files: Lock::new(SourceMapFiles {
                 file_maps: Vec::new(),
-                stable_id_to_source_file: FxHashMap(),
+                stable_id_to_source_file: FxHashMap::default(),
             }),
             file_loader: file_loader,
             path_mapping,