derive various Lift impl instead of hand rolling them

This commit is contained in:
Oli Scherer 2022-09-08 09:04:52 +00:00
parent 00fcc82df2
commit d4e986c1f0
10 changed files with 32 additions and 385 deletions

View file

@ -27,7 +27,7 @@ pub struct Instance<'tcx> {
}
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
#[derive(TyEncodable, TyDecodable, HashStable, TypeFoldable, TypeVisitable)]
#[derive(TyEncodable, TyDecodable, HashStable, TypeFoldable, TypeVisitable, Lift)]
pub enum InstanceDef<'tcx> {
/// A user-defined callable item.
///