diff options
| author | Andrew Cann <shum@canndrew.org> | 2017-01-13 00:50:15 +0800 |
|---|---|---|
| committer | Andrew Cann <shum@canndrew.org> | 2017-02-03 18:48:15 +0800 |
| commit | 5dbaefb608ac71afedadd9810e0bba6348e27c6a (patch) | |
| tree | 6295b60d310305c6c1c535e4d5531565597a22fa | |
| parent | c570cd663601694b017bc3c739bb9c260c88324b (diff) | |
| download | rust-5dbaefb608ac71afedadd9810e0bba6348e27c6a.tar.gz rust-5dbaefb608ac71afedadd9810e0bba6348e27c6a.zip | |
Hash TyTuple's defaulted flag
| -rw-r--r-- | src/librustc/ty/util.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/ty/util.rs b/src/librustc/ty/util.rs index f667100465d..b01b77bbcf8 100644 --- a/src/librustc/ty/util.rs +++ b/src/librustc/ty/util.rs @@ -466,8 +466,9 @@ impl<'a, 'gcx, 'tcx, W> TypeVisitor<'tcx> for TypeIdHasher<'a, 'gcx, 'tcx, W> self.def_id(d); } } - TyTuple(tys, _) => { + TyTuple(tys, defaulted) => { self.hash(tys.len()); + self.hash(defaulted); } TyParam(p) => { self.hash(p.idx); |
