Skip to content

Commit c8812fd

Browse files
committed
---
yaml --- r: 96994 b: refs/heads/dist-snap c: 303a394 h: refs/heads/master v: v3
1 parent 4c9c3d4 commit c8812fd

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 07dc0f3a74f3bba5620c91a12320e5bf2773f7b8
9+
refs/heads/dist-snap: 303a39477b3645e96c8e78e7eb077e31dca3b0f9
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/librustc/back/link.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,8 @@ pub fn get_symbol_hash(ccx: &mut CrateContext, t: ty::t) -> @str {
530530
}
531531

532532
let mut type_hashcodes = ccx.type_hashcodes.borrow_mut();
533-
let hash = symbol_hash(ccx.tcx, &mut ccx.symbol_hasher, t, &ccx.link_meta);
533+
let mut symbol_hasher = ccx.symbol_hasher.borrow_mut();
534+
let hash = symbol_hash(ccx.tcx, symbol_hasher.get(), t, &ccx.link_meta);
534535
type_hashcodes.get().insert(t, hash);
535536
hash
536537
}

branches/dist-snap/src/librustc/middle/trans/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub struct CrateContext {
9595
lltypes: RefCell<HashMap<ty::t, Type>>,
9696
llsizingtypes: RefCell<HashMap<ty::t, Type>>,
9797
adt_reprs: RefCell<HashMap<ty::t, @adt::Repr>>,
98-
symbol_hasher: Sha256,
98+
symbol_hasher: RefCell<Sha256>,
9999
type_hashcodes: RefCell<HashMap<ty::t, @str>>,
100100
all_llvm_symbols: RefCell<HashSet<@str>>,
101101
tcx: ty::ctxt,
@@ -205,7 +205,7 @@ impl CrateContext {
205205
lltypes: RefCell::new(HashMap::new()),
206206
llsizingtypes: RefCell::new(HashMap::new()),
207207
adt_reprs: RefCell::new(HashMap::new()),
208-
symbol_hasher: symbol_hasher,
208+
symbol_hasher: RefCell::new(symbol_hasher),
209209
type_hashcodes: RefCell::new(HashMap::new()),
210210
all_llvm_symbols: RefCell::new(HashSet::new()),
211211
tcx: tcx,

0 commit comments

Comments
 (0)