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

@@ -1820,7 +1820,9 @@ nop_list_lift! {bound_variable_kinds; ty::BoundVariableKind => ty::BoundVariable
// This is the impl for `&'a InternalSubsts<'a>`.
nop_list_lift! {substs; GenericArg<'a> => GenericArg<'tcx>}
CloneLiftImpls! { for<'tcx> { Constness, traits::WellFormedLoc, } }
CloneLiftImpls! { for<'tcx> {
Constness, traits::WellFormedLoc, ImplPolarity, crate::mir::ReturnConstraint,
} }
pub mod tls {
use super::{ptr_eq, GlobalCtxt, TyCtxt};