File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1345,7 +1345,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
1345
1345
let ( assoc_ident, def_scope) =
1346
1346
tcx. adjust_ident_and_get_scope ( binding. item_name , candidate. def_id ( ) , hir_ref_id) ;
1347
1347
1348
- // FIXME(ecstaticmorse): Can this use `find_by_name_and_kind` instead?
1348
+ // We have already adjusted the item name above, so compare with `ident.modern()` instead
1349
+ // of calling `filter_by_name_and_kind`.
1349
1350
let assoc_ty = tcx
1350
1351
. associated_items ( candidate. def_id ( ) )
1351
1352
. filter_by_name_unhygienic ( assoc_ident. name )
@@ -2198,7 +2199,8 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
2198
2199
let ( assoc_ident, def_scope) =
2199
2200
tcx. adjust_ident_and_get_scope ( assoc_ident, trait_did, hir_ref_id) ;
2200
2201
2201
- // FIXME(ecstaticmorse): Can this use `find_by_name_and_namespace` instead?
2202
+ // We have already adjusted the item name above, so compare with `ident.modern()` instead
2203
+ // of calling `filter_by_name_and_kind`.
2202
2204
let item = tcx
2203
2205
. associated_items ( trait_did)
2204
2206
. in_definition_order ( )
You can’t perform that action at this time.
0 commit comments