diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-23 08:07:30 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-23 08:07:30 +0000 |
commit | 3d7a330f320ac2ebf73df012556d64be9b120445 (patch) | |
tree | b96c4a3c4f1165fd394ce3a854dbe9e02d370a92 /crates/ra_hir/src/source_binder.rs | |
parent | 15189bc7249fc68a1df0234721514b677a90a305 (diff) | |
parent | 4fd8cfd6adc554752a63aed9ed71d44b372ec4dc (diff) |
Merge #990
990: Forbid TODO markers on master branch r=matklad a=matklad
this makes TODO markers useful for things which you want to fix before sending a PR
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/source_binder.rs')
-rw-r--r-- | crates/ra_hir/src/source_binder.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/source_binder.rs b/crates/ra_hir/src/source_binder.rs index 902110913..3645b73b4 100644 --- a/crates/ra_hir/src/source_binder.rs +++ b/crates/ra_hir/src/source_binder.rs | |||
@@ -164,7 +164,7 @@ pub fn resolver_for_position(db: &impl HirDatabase, position: FilePosition) -> R | |||
164 | let scope = scopes.scope_for_offset(position.offset); | 164 | let scope = scopes.scope_for_offset(position.offset); |
165 | Some(expr::resolver_for_scope(func.body(db), db, scope)) | 165 | Some(expr::resolver_for_scope(func.body(db), db, scope)) |
166 | } else { | 166 | } else { |
167 | // TODO const/static/array length | 167 | // FIXME const/static/array length |
168 | None | 168 | None |
169 | } | 169 | } |
170 | } else { | 170 | } else { |
@@ -184,7 +184,7 @@ pub fn resolver_for_node(db: &impl HirDatabase, file_id: FileId, node: &SyntaxNo | |||
184 | let scope = scopes.scope_for(&node); | 184 | let scope = scopes.scope_for(&node); |
185 | Some(expr::resolver_for_scope(func.body(db), db, scope)) | 185 | Some(expr::resolver_for_scope(func.body(db), db, scope)) |
186 | } else { | 186 | } else { |
187 | // TODO const/static/array length | 187 | // FIXME const/static/array length |
188 | None | 188 | None |
189 | } | 189 | } |
190 | } else { | 190 | } else { |
@@ -212,7 +212,7 @@ fn try_get_resolver_for_node( | |||
212 | } else if let Some(f) = ast::FnDef::cast(node) { | 212 | } else if let Some(f) = ast::FnDef::cast(node) { |
213 | function_from_source(db, file_id, f).map(|f| f.resolver(db)) | 213 | function_from_source(db, file_id, f).map(|f| f.resolver(db)) |
214 | } else { | 214 | } else { |
215 | // TODO add missing cases | 215 | // FIXME add missing cases |
216 | None | 216 | None |
217 | } | 217 | } |
218 | } | 218 | } |