Fix previous commit

This commit is contained in:
Andrew Cann 2016-09-15 01:10:53 +08:00
parent d6482510f4
commit 75140512eb

View File

@ -1393,7 +1393,7 @@ impl<'tcx> serialize::UseSpecializedDecodable for AdtDef<'tcx> {}
impl<'a, 'gcx, 'tcx> AdtDefData<'tcx, 'static> {
#[inline]
pub fn is_uninhabited_recurse(&'tcx self,
visited: &mut HashMap<(DefId, &'tcx Substs<'tcx>), ()>,
visited: &mut HashMap<(DefId, &'tcx Substs<'tcx>), ()>,
cx: TyCtxt<'a, 'gcx, 'tcx>,
substs: &'tcx Substs<'tcx>) -> bool {
match visited.entry((self.did, substs)) {