Delegation implementation: step 1
This commit is contained in:
parent
6baa129fbc
commit
09d024117e
@ -830,6 +830,7 @@ fn for_hir_ty<'tcx>(ty: &'tcx hir::Ty<'tcx>) -> Self {
|
|||||||
| TyKind::Infer
|
| TyKind::Infer
|
||||||
| TyKind::Typeof(..)
|
| TyKind::Typeof(..)
|
||||||
| TyKind::TraitObject(..)
|
| TyKind::TraitObject(..)
|
||||||
|
| TyKind::InferDelegation(..)
|
||||||
| TyKind::Err(_) => Self::Reborrow,
|
| TyKind::Err(_) => Self::Reborrow,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1108,7 +1108,7 @@ pub fn hash_tykind(&mut self, ty: &TyKind<'_>) {
|
|||||||
TyKind::Typeof(anon_const) => {
|
TyKind::Typeof(anon_const) => {
|
||||||
self.hash_body(anon_const.body);
|
self.hash_body(anon_const.body);
|
||||||
},
|
},
|
||||||
TyKind::Err(_) | TyKind::Infer | TyKind::Never => {},
|
TyKind::Err(_) | TyKind::Infer | TyKind::Never | TyKind::InferDelegation(..) => {},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user