@@ -47,7 +47,7 @@ pub enum InstanceDef<'tcx> {
4747 ///`<T as Clone>::clone` shim for Copy types
4848 ///
4949 /// The DefId is the DefId of the Clone::clone function
50- CloneCopyShim ( DefId , Ty < ' tcx > ) ,
50+ CloneCopyShim ( DefId ) ,
5151 ///`<T as Clone>::clone` shim for arrays and tuples
5252 ///
5353 /// The DefId is the DefId of the Clone::clone function
@@ -78,7 +78,7 @@ impl<'tcx> InstanceDef<'tcx> {
7878 InstanceDef :: Intrinsic ( def_id, ) |
7979 InstanceDef :: ClosureOnceShim { call_once : def_id } |
8080 InstanceDef :: DropGlue ( def_id, _) |
81- InstanceDef :: CloneCopyShim ( def_id, _ ) |
81+ InstanceDef :: CloneCopyShim ( def_id) |
8282 InstanceDef :: CloneStructuralShim ( def_id, _) |
8383 InstanceDef :: CloneNominalShim ( def_id, _) => def_id
8484 }
@@ -146,7 +146,9 @@ impl<'tcx> fmt::Display for Instance<'tcx> {
146146 InstanceDef :: DropGlue ( _, ty) => {
147147 write ! ( f, " - shim({:?})" , ty)
148148 }
149- InstanceDef :: CloneCopyShim ( _, ty) |
149+ InstanceDef :: CloneCopyShim ( def) => {
150+ write ! ( f, " - shim({:?})" , def)
151+ }
150152 InstanceDef :: CloneStructuralShim ( _, ty) |
151153 InstanceDef :: CloneNominalShim ( _, ty) => {
152154 write ! ( f, " - shim({:?})" , ty)
@@ -311,7 +313,7 @@ fn resolve_associated_item<'a, 'tcx>(
311313 let self_ty = trait_ref. self_ty ( ) ;
312314 match self_ty. sty {
313315 _ if !self_ty. moves_by_default ( tcx, param_env, DUMMY_SP ) => {
314- ty:: InstanceDef :: CloneCopyShim ( def_id, self_ty )
316+ ty:: InstanceDef :: CloneCopyShim ( def_id)
315317 }
316318 ty:: TyArray ( ..) => ty:: InstanceDef :: CloneStructuralShim ( def_id, self_ty) ,
317319 ty:: TyTuple ( ..) => ty:: InstanceDef :: CloneStructuralShim ( def_id, self_ty) ,
0 commit comments