From ee81739dc1e0f1c4dff9480b52528fb688ef9251 Mon Sep 17 00:00:00 2001 From: Oliver Scherer Date: Tue, 16 Oct 2018 10:44:26 +0200 Subject: Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack --- src/librustc_errors/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/librustc_errors') 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); } -- cgit 1.4.1-3-g733a5