Derive TypeFoldable and TypeVisitable for mir::PlaceElement

This commit is contained in:
Oli Scherer 2022-09-15 13:43:44 +00:00
parent 10c0560cd2
commit d376012a43
4 changed files with 1 additions and 32 deletions

View file

@ -872,7 +872,7 @@ pub struct Place<'tcx> {
}
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[derive(TyEncodable, TyDecodable, HashStable)]
#[derive(TyEncodable, TyDecodable, HashStable, TypeFoldable, TypeVisitable)]
pub enum ProjectionElem<V, T> {
Deref,
Field(Field, T),