Lift: take self by value
This commit is contained in:
parent
1d2726726f
commit
8752a560b9
15 changed files with 138 additions and 151 deletions
|
@ -29,8 +29,8 @@ macro_rules! CloneLiftImpls {
|
|||
$(
|
||||
impl<$tcx> $crate::ty::Lift<$tcx> for $ty {
|
||||
type Lifted = Self;
|
||||
fn lift_to_tcx(&self, _: $crate::ty::TyCtxt<$tcx>) -> Option<Self> {
|
||||
Some(Clone::clone(self))
|
||||
fn lift_to_tcx(self, _: $crate::ty::TyCtxt<$tcx>) -> Option<Self> {
|
||||
Some(self)
|
||||
}
|
||||
}
|
||||
)+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue