Extract ImplSubject information

This commit is contained in:
Santiago Pastorino 2022-03-20 00:12:03 -03:00
parent 91b52148eb
commit 0cd03c917c
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
3 changed files with 50 additions and 37 deletions

View file

@ -172,6 +172,12 @@ pub struct ImplHeader<'tcx> {
pub predicates: Vec<Predicate<'tcx>>,
}
#[derive(Debug)]
pub enum ImplSubject<'tcx> {
Trait(TraitRef<'tcx>),
Inherent(Ty<'tcx>),
}
#[derive(
Copy,
Clone,