about summary refs log tree commit diff
path: root/src/librustc_errors
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/librustc_errors
parent74ff7dcb1388e60a613cd6050bcd372a3cc4998b (diff)
downloadrust-ee81739dc1e0f1c4dff9480b52528fb688ef9251.tar.gz
rust-ee81739dc1e0f1c4dff9480b52528fb688ef9251.zip
Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack
Diffstat (limited to 'src/librustc_errors')
-rw-r--r--src/librustc_errors/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_errors/lib.rs b/src/librustc_errors/lib.rs
index 12f1a43ed05..bec8d2997f7 100644
--- a/src/librustc_errors/lib.rs
+++ b/src/librustc_errors/lib.rs
@@ -382,9 +382,9 @@ impl Handler {
             emitter: Lock::new(e),
             continue_after_error: LockCell::new(true),
             delayed_span_bugs: Lock::new(Vec::new()),
-            taught_diagnostics: Lock::new(FxHashSet()),
-            emitted_diagnostic_codes: Lock::new(FxHashSet()),
-            emitted_diagnostics: Lock::new(FxHashSet()),
+            taught_diagnostics: Lock::new(FxHashSet::default()),
+            emitted_diagnostic_codes: Lock::new(FxHashSet::default()),
+            emitted_diagnostics: Lock::new(FxHashSet::default()),
         }
     }
 
@@ -398,7 +398,7 @@ impl Handler {
     /// tools that want to reuse a `Parser` cleaning the previously emitted diagnostics as well as
     /// the overall count of emitted error diagnostics.
     pub fn reset_err_count(&self) {
-        *self.emitted_diagnostics.borrow_mut() = FxHashSet();
+        *self.emitted_diagnostics.borrow_mut() = FxHashSet::default();
         self.err_count.store(0, SeqCst);
     }