@@ -530,9 +530,8 @@ impl PathSource<'_, '_, '_> {
530530 } ,
531531 _ => "value" ,
532532 } ,
533- PathSource :: ReturnTypeNotation
534- | PathSource :: Delegation
535- | PathSource :: ExternItemImpl => "function" ,
533+ PathSource :: ReturnTypeNotation | PathSource :: Delegation => "function" ,
534+ PathSource :: ExternItemImpl => "function or static" ,
536535 PathSource :: PreciseCapturingArg ( ..) => "type or const parameter" ,
537536 PathSource :: Macro => "macro" ,
538537 PathSource :: Module => "module" ,
@@ -625,7 +624,13 @@ impl PathSource<'_, '_, '_> {
625624 } ,
626625 PathSource :: Delegation => matches ! ( res, Res :: Def ( DefKind :: Fn | DefKind :: AssocFn , _) ) ,
627626 PathSource :: ExternItemImpl => {
628- matches ! ( res, Res :: Def ( DefKind :: Fn | DefKind :: AssocFn | DefKind :: Ctor ( ..) , _) )
627+ matches ! (
628+ res,
629+ Res :: Def (
630+ DefKind :: Fn | DefKind :: AssocFn | DefKind :: Ctor ( ..) | DefKind :: Static { .. } ,
631+ _
632+ )
633+ )
629634 }
630635 PathSource :: PreciseCapturingArg ( ValueNS ) => {
631636 matches ! ( res, Res :: Def ( DefKind :: ConstParam , _) )
@@ -5500,7 +5505,7 @@ impl<'a, 'ast, 'ra, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
55005505 * node_id,
55015506 & None ,
55025507 & target. foreign_item ,
5503- PathSource :: ExternItemImpl
5508+ PathSource :: ExternItemImpl ,
55045509 ) ;
55055510 } else {
55065511 self . smart_resolve_path ( * node_id, & None , & eii_macro_path, PathSource :: Macro ) ;
0 commit comments