about summary refs log tree commit diff
path: root/src/libsyntax/source_map.rs
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/source_map.rs
parent74ff7dcb1388e60a613cd6050bcd372a3cc4998b (diff)
downloadrust-ee81739dc1e0f1c4dff9480b52528fb688ef9251.tar.gz
rust-ee81739dc1e0f1c4dff9480b52528fb688ef9251.zip
Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack
Diffstat (limited to 'src/libsyntax/source_map.rs')
-rw-r--r--src/libsyntax/source_map.rs4
1 files changed, 2 insertions, 2 deletions
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,