@@ -148,10 +148,6 @@ trait ResolverAstLoweringExt {
148
148
fn legacy_const_generic_args ( & self , expr : & Expr ) -> Option < Vec < usize > > ;
149
149
fn get_partial_res ( & self , id : NodeId ) -> Option < PartialRes > ;
150
150
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 ) ;
155
151
fn get_label_res ( & self , id : NodeId ) -> Option < NodeId > ;
156
152
fn get_lifetime_res ( & self , id : NodeId ) -> Option < LifetimeRes > ;
157
153
fn take_extra_lifetime_params ( & mut self , id : NodeId ) -> Vec < ( Ident , NodeId , LifetimeRes ) > ;
@@ -184,12 +180,6 @@ impl ResolverAstLoweringExt for ResolverAstLowering {
184
180
None
185
181
}
186
182
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
-
193
183
/// Obtains resolution for a `NodeId` with a single resolution.
194
184
fn get_partial_res ( & self , id : NodeId ) -> Option < PartialRes > {
195
185
self . partial_res_map . get ( & id) . copied ( )
0 commit comments