File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
branches/dist-snap/src/librustc Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: 07dc0f3a74f3bba5620c91a12320e5bf2773f7b8
9
+ refs/heads/dist-snap: 303a39477b3645e96c8e78e7eb077e31dca3b0f9
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -530,7 +530,8 @@ pub fn get_symbol_hash(ccx: &mut CrateContext, t: ty::t) -> @str {
530
530
}
531
531
532
532
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 ) ;
534
535
type_hashcodes. get ( ) . insert ( t, hash) ;
535
536
hash
536
537
}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ pub struct CrateContext {
95
95
lltypes : RefCell < HashMap < ty:: t , Type > > ,
96
96
llsizingtypes : RefCell < HashMap < ty:: t , Type > > ,
97
97
adt_reprs : RefCell < HashMap < ty:: t , @adt:: Repr > > ,
98
- symbol_hasher : Sha256 ,
98
+ symbol_hasher : RefCell < Sha256 > ,
99
99
type_hashcodes : RefCell < HashMap < ty:: t , @str > > ,
100
100
all_llvm_symbols : RefCell < HashSet < @str > > ,
101
101
tcx : ty:: ctxt ,
@@ -205,7 +205,7 @@ impl CrateContext {
205
205
lltypes : RefCell :: new ( HashMap :: new ( ) ) ,
206
206
llsizingtypes : RefCell :: new ( HashMap :: new ( ) ) ,
207
207
adt_reprs : RefCell :: new ( HashMap :: new ( ) ) ,
208
- symbol_hasher : symbol_hasher,
208
+ symbol_hasher : RefCell :: new ( symbol_hasher) ,
209
209
type_hashcodes : RefCell :: new ( HashMap :: new ( ) ) ,
210
210
all_llvm_symbols : RefCell :: new ( HashSet :: new ( ) ) ,
211
211
tcx : tcx,
You can’t perform that action at this time.
0 commit comments