File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
trunk/src/librustc/middle/traits Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a6d9930525bee48e250bc9527f48c501e53d861d
2
+ refs/heads/master: e78550bf88eac19b5a1b7a5c1dbad0d0c331c557
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: b3317d68910900f135f9f38e43a7a699bc736b4a
5
5
refs/heads/try: 961e0358e1a5c0faaef606e31e9965742c1643bf
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ use middle::infer;
39
39
use middle:: infer:: { InferCtxt , TypeFreshener } ;
40
40
use middle:: ty_fold:: TypeFoldable ;
41
41
use std:: cell:: RefCell ;
42
- use std:: collections:: hash_map:: HashMap ;
43
42
use std:: rc:: Rc ;
44
43
use syntax:: { abi, ast} ;
45
44
use util:: common:: ErrorReported ;
45
+ use util:: nodemap:: FnvHashMap ;
46
46
use util:: ppaux:: Repr ;
47
47
48
48
pub struct SelectionContext < ' cx , ' tcx : ' cx > {
@@ -86,8 +86,8 @@ struct TraitObligationStack<'prev, 'tcx: 'prev> {
86
86
87
87
#[ derive( Clone ) ]
88
88
pub struct SelectionCache < ' tcx > {
89
- hashmap : RefCell < HashMap < Rc < ty:: TraitRef < ' tcx > > ,
90
- SelectionResult < ' tcx , SelectionCandidate < ' tcx > > > > ,
89
+ hashmap : RefCell < FnvHashMap < Rc < ty:: TraitRef < ' tcx > > ,
90
+ SelectionResult < ' tcx , SelectionCandidate < ' tcx > > > > ,
91
91
}
92
92
93
93
pub enum MethodMatchResult {
@@ -2634,7 +2634,7 @@ impl<'tcx> Repr<'tcx> for SelectionCandidate<'tcx> {
2634
2634
impl < ' tcx > SelectionCache < ' tcx > {
2635
2635
pub fn new ( ) -> SelectionCache < ' tcx > {
2636
2636
SelectionCache {
2637
- hashmap : RefCell :: new ( HashMap :: new ( ) )
2637
+ hashmap : RefCell :: new ( FnvHashMap ( ) )
2638
2638
}
2639
2639
}
2640
2640
}
You can’t perform that action at this time.
0 commit comments