diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-05 19:41:45 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-05 19:41:45 -0800 |
| commit | 801f3225b24a796402b83f660f80e62ac504befe (patch) | |
| tree | d569b736ba6493b17c29ccc25823956cf8e1732c /src/libsyntax/util | |
| parent | a4250a96fdf61142a9c8dbb6d37ae8435c99e396 (diff) | |
| download | rust-801f3225b24a796402b83f660f80e62ac504befe.tar.gz rust-801f3225b24a796402b83f660f80e62ac504befe.zip | |
oldmap: use &K instead of K in find and get
This reverts commit a4250a96fdf61142a9c8dbb6d37ae8435c99e396. This is not the cause of the nonexhaustive-match failure.
Diffstat (limited to 'src/libsyntax/util')
| -rw-r--r-- | src/libsyntax/util/interner.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 19b938ccd68..905571d1817 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -44,7 +44,7 @@ pub trait Interner<T:Eq IterBytes Hash Const Copy> { pub impl <T:Eq IterBytes Hash Const Copy> hash_interner<T>: Interner<T> { fn intern(val: T) -> uint { - match self.map.find(val) { + match self.map.find(&val) { Some(idx) => return idx, None => { let new_idx = self.vect.len(); |
