diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2014-03-22 16:30:45 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2014-03-23 01:59:11 -0400 |
| commit | 3829ac2a52f12b08501cb25d82de32f39fbe801e (patch) | |
| tree | e9d59ed4a26c120d9aa26510a2b4e85516a3dc52 /src/libsyntax/util | |
| parent | 94e4e917243425f15241e3dcc9b1bcd4b11ebf3e (diff) | |
| download | rust-3829ac2a52f12b08501cb25d82de32f39fbe801e.tar.gz rust-3829ac2a52f12b08501cb25d82de32f39fbe801e.zip | |
use TotalEq for HashMap
Closes #5283
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 d6f8f1067ae..9b73cf533a7 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -28,7 +28,7 @@ pub struct Interner<T> { } // when traits can extend traits, we should extend index<Name,T> to get [] -impl<T: Eq + Hash + Clone + 'static> Interner<T> { +impl<T: TotalEq + Hash + Clone + 'static> Interner<T> { pub fn new() -> Interner<T> { Interner { map: RefCell::new(HashMap::new()), |
