diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2018-10-16 10:44:26 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2018-10-19 14:34:44 +0200 |
| commit | ee81739dc1e0f1c4dff9480b52528fb688ef9251 (patch) | |
| tree | 8d0b81036ac5d144394a8e324e539072e4541d8e /src/librustc_codegen_llvm/back | |
| parent | 74ff7dcb1388e60a613cd6050bcd372a3cc4998b (diff) | |
| download | rust-ee81739dc1e0f1c4dff9480b52528fb688ef9251.tar.gz rust-ee81739dc1e0f1c4dff9480b52528fb688ef9251.zip | |
Deprecate the `FxHashMap()` and `FxHashSet()` constructor function hack
Diffstat (limited to 'src/librustc_codegen_llvm/back')
| -rw-r--r-- | src/librustc_codegen_llvm/back/link.rs | 2 | ||||
| -rw-r--r-- | src/librustc_codegen_llvm/back/lto.rs | 4 | ||||
| -rw-r--r-- | src/librustc_codegen_llvm/back/write.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_codegen_llvm/back/link.rs b/src/librustc_codegen_llvm/back/link.rs index 9fac343b846..86c6a5e65b0 100644 --- a/src/librustc_codegen_llvm/back/link.rs +++ b/src/librustc_codegen_llvm/back/link.rs @@ -1313,7 +1313,7 @@ fn add_upstream_rust_crates(cmd: &mut dyn Linker, // for the current implementation of the standard library. let mut group_end = None; let mut group_start = None; - let mut end_with = FxHashSet(); + let mut end_with = FxHashSet::default(); let info = &codegen_results.crate_info; for &(cnum, _) in deps.iter().rev() { if let Some(missing) = info.missing_lang_items.get(&cnum) { diff --git a/src/librustc_codegen_llvm/back/lto.rs b/src/librustc_codegen_llvm/back/lto.rs index 3ac22f4eaef..f648efb47df 100644 --- a/src/librustc_codegen_llvm/back/lto.rs +++ b/src/librustc_codegen_llvm/back/lto.rs @@ -882,7 +882,7 @@ pub struct ThinLTOImports { impl ThinLTOImports { fn new() -> ThinLTOImports { ThinLTOImports { - imports: FxHashMap(), + imports: FxHashMap::default(), } } @@ -911,7 +911,7 @@ impl ThinLTOImports { .push(imported_module_name.to_owned()); } let mut map = ThinLTOImports { - imports: FxHashMap(), + imports: FxHashMap::default(), }; llvm::LLVMRustGetThinLTOModuleImports(data, imported_module_callback, diff --git a/src/librustc_codegen_llvm/back/write.rs b/src/librustc_codegen_llvm/back/write.rs index 95281e2445a..81619c21975 100644 --- a/src/librustc_codegen_llvm/back/write.rs +++ b/src/librustc_codegen_llvm/back/write.rs @@ -1540,7 +1540,7 @@ fn start_executing_work(tcx: TyCtxt, // Compute the set of symbols we need to retain when doing LTO (if we need to) let exported_symbols = { - let mut exported_symbols = FxHashMap(); + let mut exported_symbols = FxHashMap::default(); let copy_symbols = |cnum| { let symbols = tcx.exported_symbols(cnum) |
