@@ -148,10 +148,6 @@ trait ResolverAstLoweringExt {
148148 fn legacy_const_generic_args ( & self , expr : & Expr ) -> Option < Vec < usize > > ;
149149 fn get_partial_res ( & self , id : NodeId ) -> Option < PartialRes > ;
150150 fn get_import_res ( & self , id : NodeId ) -> PerNS < Option < Res < NodeId > > > ;
151- // Clones the resolution (if any) on 'source' and applies it
152- // to 'target'. Used when desugaring a `UseTreeKind::Nested` to
153- // multiple `UseTreeKind::Simple`s
154- fn clone_res ( & mut self , source : NodeId , target : NodeId ) ;
155151 fn get_label_res ( & self , id : NodeId ) -> Option < NodeId > ;
156152 fn get_lifetime_res ( & self , id : NodeId ) -> Option < LifetimeRes > ;
157153 fn take_extra_lifetime_params ( & mut self , id : NodeId ) -> Vec < ( Ident , NodeId , LifetimeRes ) > ;
@@ -184,12 +180,6 @@ impl ResolverAstLoweringExt for ResolverAstLowering {
184180 None
185181 }
186182
187- fn clone_res ( & mut self , source : NodeId , target : NodeId ) {
188- if let Some ( res) = self . partial_res_map . get ( & source) {
189- self . partial_res_map . insert ( target, * res) ;
190- }
191- }
192-
193183 /// Obtains resolution for a `NodeId` with a single resolution.
194184 fn get_partial_res ( & self , id : NodeId ) -> Option < PartialRes > {
195185 self . partial_res_map . get ( & id) . copied ( )
0 commit comments