Skip to content

Commit 1455920

Browse files
committed
---
yaml --- r: 195788 b: refs/heads/auto c: e78550b h: refs/heads/master v: v3
1 parent d021c85 commit 1455920

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: a6d9930525bee48e250bc9527f48c501e53d861d
13+
refs/heads/auto: e78550bf88eac19b5a1b7a5c1dbad0d0c331c557
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/librustc/middle/traits/select.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ use middle::infer;
3939
use middle::infer::{InferCtxt, TypeFreshener};
4040
use middle::ty_fold::TypeFoldable;
4141
use std::cell::RefCell;
42-
use std::collections::hash_map::HashMap;
4342
use std::rc::Rc;
4443
use syntax::{abi, ast};
4544
use util::common::ErrorReported;
45+
use util::nodemap::FnvHashMap;
4646
use util::ppaux::Repr;
4747

4848
pub struct SelectionContext<'cx, 'tcx:'cx> {
@@ -86,8 +86,8 @@ struct TraitObligationStack<'prev, 'tcx: 'prev> {
8686

8787
#[derive(Clone)]
8888
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>>>>,
9191
}
9292

9393
pub enum MethodMatchResult {
@@ -2634,7 +2634,7 @@ impl<'tcx> Repr<'tcx> for SelectionCandidate<'tcx> {
26342634
impl<'tcx> SelectionCache<'tcx> {
26352635
pub fn new() -> SelectionCache<'tcx> {
26362636
SelectionCache {
2637-
hashmap: RefCell::new(HashMap::new())
2637+
hashmap: RefCell::new(FnvHashMap())
26382638
}
26392639
}
26402640
}

0 commit comments

Comments
 (0)