Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Jun 3, 2018
1 parent 3ee5405 commit c124143
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc/ty/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ pub struct GlobalCtxt<'tcx> {
stability_interner: Lock<FxInterner<&'tcx attr::Stability>>,

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

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

Expand Down Expand Up @@ -1138,7 +1138,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
data_layout,
layout_interner: Default::default(),
stability_interner: Default::default(),
allocation_interner: Lock::new(FxHashSet()),
allocation_interner: Default::default(),
alloc_map: Lock::new(interpret::AllocMap::new()),
tx_to_llvm_workers: Lock::new(tx),
output_filenames: Arc::new(output_filenames.clone()),
Expand Down
1 change: 1 addition & 0 deletions src/librustc_data_structures/fx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use std::collections::{HashMap, HashSet};
use std::default::Default;
use std::hash::Hash;
use std::hash::BuildHasherDefault;
use interner;

pub use rustc_hash::FxHashMap;
Expand Down

0 comments on commit c124143

Please sign in to comment.