diff options
author | Aleksey Kladov <[email protected]> | 2019-12-18 16:41:33 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-18 16:41:33 +0000 |
commit | 04715cbe1caf92e55d393a352a12454ba958845e (patch) | |
tree | 8c4a839f9b3ac037429d20b568c5a573c7d65825 /crates/ra_hir_def/src/nameres/path_resolution.rs | |
parent | 88c6109897417e7ab815ea1711f49545bff94601 (diff) |
Forbid <T>::foo syntax in mod paths
Diffstat (limited to 'crates/ra_hir_def/src/nameres/path_resolution.rs')
-rw-r--r-- | crates/ra_hir_def/src/nameres/path_resolution.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/ra_hir_def/src/nameres/path_resolution.rs b/crates/ra_hir_def/src/nameres/path_resolution.rs index 1dbc4f371..2dd779b66 100644 --- a/crates/ra_hir_def/src/nameres/path_resolution.rs +++ b/crates/ra_hir_def/src/nameres/path_resolution.rs | |||
@@ -145,11 +145,6 @@ impl CrateDefMap { | |||
145 | return ResolvePathResult::empty(ReachedFixedPoint::No); // extern crate declarations can add to the extern prelude | 145 | return ResolvePathResult::empty(ReachedFixedPoint::No); // extern crate declarations can add to the extern prelude |
146 | } | 146 | } |
147 | } | 147 | } |
148 | PathKind::Type(_) => { | ||
149 | // This is handled in `infer::infer_path_expr` | ||
150 | // The result returned here does not matter | ||
151 | return ResolvePathResult::empty(ReachedFixedPoint::Yes); | ||
152 | } | ||
153 | }; | 148 | }; |
154 | 149 | ||
155 | for (i, segment) in segments { | 150 | for (i, segment) in segments { |