@@ -34,7 +34,7 @@ use syntax::{
34
34
use crate :: {
35
35
db:: HirDatabase , semantics:: PathResolution , Adt , BuiltinAttr , BuiltinType , Const , Field ,
36
36
Function , Local , MacroDef , ModuleDef , Static , Struct , ToolModule , Trait , Type , TypeAlias ,
37
- TypeOrConstParam , Variant ,
37
+ Variant ,
38
38
} ;
39
39
use base_db:: CrateId ;
40
40
@@ -609,10 +609,7 @@ fn resolve_hir_path_(
609
609
610
610
let res = match ty {
611
611
TypeNs :: SelfType ( it) => PathResolution :: SelfType ( it. into ( ) ) ,
612
- TypeNs :: GenericParam ( id) => match ( TypeOrConstParam { id } ) . split ( db) {
613
- either:: Either :: Left ( x) => PathResolution :: ConstParam ( x) ,
614
- either:: Either :: Right ( x) => PathResolution :: TypeParam ( x) ,
615
- } ,
612
+ TypeNs :: GenericParam ( id) => PathResolution :: TypeParam ( id. into ( ) ) ,
616
613
TypeNs :: AdtSelfType ( it) | TypeNs :: AdtId ( it) => {
617
614
PathResolution :: Def ( Adt :: from ( it) . into ( ) )
618
615
}
@@ -706,10 +703,7 @@ fn resolve_hir_path_qualifier(
706
703
707
704
resolver. resolve_path_in_type_ns_fully ( db. upcast ( ) , path. mod_path ( ) ) . map ( |ty| match ty {
708
705
TypeNs :: SelfType ( it) => PathResolution :: SelfType ( it. into ( ) ) ,
709
- TypeNs :: GenericParam ( id) => match ( TypeOrConstParam { id } ) . split ( db) {
710
- either:: Either :: Left ( x) => PathResolution :: ConstParam ( x) ,
711
- either:: Either :: Right ( x) => PathResolution :: TypeParam ( x) ,
712
- } ,
706
+ TypeNs :: GenericParam ( id) => PathResolution :: TypeParam ( id. into ( ) ) ,
713
707
TypeNs :: AdtSelfType ( it) | TypeNs :: AdtId ( it) => PathResolution :: Def ( Adt :: from ( it) . into ( ) ) ,
714
708
TypeNs :: EnumVariantId ( it) => PathResolution :: Def ( Variant :: from ( it) . into ( ) ) ,
715
709
TypeNs :: TypeAliasId ( it) => PathResolution :: Def ( TypeAlias :: from ( it) . into ( ) ) ,
0 commit comments