@@ -2333,8 +2333,8 @@ impl<'a> Resolver<'a> {
23332333 } , "variant or struct" ) ;
23342334 }
23352335
2336- PatKind :: Path ( ref path) => {
2337- self . resolve_pattern_path ( pat. id , None , path, ValueNS , |def| {
2336+ PatKind :: Path ( ref qself , ref path) => {
2337+ self . resolve_pattern_path ( pat. id , qself . as_ref ( ) , path, ValueNS , |def| {
23382338 match def {
23392339 Def :: Struct ( ..) | Def :: Variant ( ..) |
23402340 Def :: Const ( ..) | Def :: AssociatedConst ( ..) | Def :: Err => true ,
@@ -2343,15 +2343,6 @@ impl<'a> Resolver<'a> {
23432343 } , "variant, struct or constant" ) ;
23442344 }
23452345
2346- PatKind :: QPath ( ref qself, ref path) => {
2347- self . resolve_pattern_path ( pat. id , Some ( qself) , path, ValueNS , |def| {
2348- match def {
2349- Def :: AssociatedConst ( ..) | Def :: Err => true ,
2350- _ => false ,
2351- }
2352- } , "associated constant" ) ;
2353- }
2354-
23552346 PatKind :: Struct ( ref path, _, _) => {
23562347 self . resolve_pattern_path ( pat. id , None , path, TypeNS , |def| {
23572348 match def {
0 commit comments