Skip to content

Commit c124143

Browse files
committed
wip
1 parent 3ee5405 commit c124143

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/librustc/ty/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ pub struct GlobalCtxt<'tcx> {
905905
stability_interner: Lock<FxInterner<&'tcx attr::Stability>>,
906906

907907
/// Stores the value of constants (and deduplicates the actual memory)
908-
allocation_interner: Lock<FxHashSet<&'tcx Allocation>>,
908+
allocation_interner: Lock<FxInterner<&'tcx Allocation>>,
909909

910910
pub alloc_map: Lock<interpret::AllocMap<'tcx, &'tcx Allocation>>,
911911

@@ -1138,7 +1138,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
11381138
data_layout,
11391139
layout_interner: Default::default(),
11401140
stability_interner: Default::default(),
1141-
allocation_interner: Lock::new(FxHashSet()),
1141+
allocation_interner: Default::default(),
11421142
alloc_map: Lock::new(interpret::AllocMap::new()),
11431143
tx_to_llvm_workers: Lock::new(tx),
11441144
output_filenames: Arc::new(output_filenames.clone()),

src/librustc_data_structures/fx.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use std::collections::{HashMap, HashSet};
1212
use std::default::Default;
1313
use std::hash::Hash;
14+
use std::hash::BuildHasherDefault;
1415
use interner;
1516

1617
pub use rustc_hash::FxHashMap;

0 commit comments

Comments
 (0)