@@ -49,21 +49,20 @@ impl PathResolution {
4949 PathResolution :: Def ( ModuleDef :: BuiltinType ( builtin) ) => {
5050 Some ( TypeNs :: BuiltinType ( * builtin) )
5151 }
52- PathResolution :: Def ( ModuleDef :: Const ( _) ) => None ,
53- PathResolution :: Def ( ModuleDef :: EnumVariant ( _) ) => None ,
54- PathResolution :: Def ( ModuleDef :: Function ( _) ) => None ,
55- PathResolution :: Def ( ModuleDef :: Module ( _) ) => None ,
56- PathResolution :: Def ( ModuleDef :: Static ( _) ) => None ,
57- PathResolution :: Def ( ModuleDef :: Trait ( _) ) => None ,
52+ PathResolution :: Def ( ModuleDef :: Const ( _) )
53+ | PathResolution :: Def ( ModuleDef :: EnumVariant ( _) )
54+ | PathResolution :: Def ( ModuleDef :: Function ( _) )
55+ | PathResolution :: Def ( ModuleDef :: Module ( _) )
56+ | PathResolution :: Def ( ModuleDef :: Static ( _) )
57+ | PathResolution :: Def ( ModuleDef :: Trait ( _) ) => None ,
5858 PathResolution :: Def ( ModuleDef :: TypeAlias ( alias) ) => {
5959 Some ( TypeNs :: TypeAliasId ( ( * alias) . into ( ) ) )
6060 }
61- PathResolution :: Local ( _) => None ,
61+ PathResolution :: Local ( _) | PathResolution :: Macro ( _ ) => None ,
6262 PathResolution :: TypeParam ( param) => Some ( TypeNs :: GenericParam ( ( * param) . into ( ) ) ) ,
6363 PathResolution :: SelfType ( impl_def) => Some ( TypeNs :: SelfType ( ( * impl_def) . into ( ) ) ) ,
64- PathResolution :: Macro ( _) => None ,
65- PathResolution :: AssocItem ( AssocItem :: Const ( _) ) => None ,
66- PathResolution :: AssocItem ( AssocItem :: Function ( _) ) => None ,
64+ PathResolution :: AssocItem ( AssocItem :: Const ( _) )
65+ | PathResolution :: AssocItem ( AssocItem :: Function ( _) ) => None ,
6766 PathResolution :: AssocItem ( AssocItem :: TypeAlias ( alias) ) => {
6867 Some ( TypeNs :: TypeAliasId ( ( * alias) . into ( ) ) )
6968 }
0 commit comments