diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-29 20:40:29 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-29 20:40:29 +0000 |
commit | 5e78036e6c8752fda350818afdd411ab25f405ce (patch) | |
tree | e099bb9e9c04392dcb7fed54200a989f663f3659 /crates/ra_ide/src/display | |
parent | e91320632a9dfee937c3c2ba3ffafd3f5ffb22dc (diff) | |
parent | a1e18695548b5cd6661f26a985b34c8b105e1896 (diff) |
Merge #3379
3379: Rename ast::ImplBlock -> ast::ImplDef r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/display')
-rw-r--r-- | crates/ra_ide/src/display/navigation_target.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide/src/display/structure.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_ide/src/display/navigation_target.rs b/crates/ra_ide/src/display/navigation_target.rs index 5afb23764..4d3dd477e 100644 --- a/crates/ra_ide/src/display/navigation_target.rs +++ b/crates/ra_ide/src/display/navigation_target.rs | |||
@@ -269,7 +269,7 @@ impl ToNav for hir::Module { | |||
269 | } | 269 | } |
270 | } | 270 | } |
271 | 271 | ||
272 | impl ToNav for hir::ImplBlock { | 272 | impl ToNav for hir::ImplDef { |
273 | fn to_nav(&self, db: &RootDatabase) -> NavigationTarget { | 273 | fn to_nav(&self, db: &RootDatabase) -> NavigationTarget { |
274 | let src = self.source(db); | 274 | let src = self.source(db); |
275 | let frange = if let Some(item) = self.is_builtin_derive(db) { | 275 | let frange = if let Some(item) = self.is_builtin_derive(db) { |
diff --git a/crates/ra_ide/src/display/structure.rs b/crates/ra_ide/src/display/structure.rs index 944cc79df..5774e9a8b 100644 --- a/crates/ra_ide/src/display/structure.rs +++ b/crates/ra_ide/src/display/structure.rs | |||
@@ -129,7 +129,7 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> { | |||
129 | ast::RecordFieldDef(it) => { decl_with_ascription(it) }, | 129 | ast::RecordFieldDef(it) => { decl_with_ascription(it) }, |
130 | ast::ConstDef(it) => { decl_with_ascription(it) }, | 130 | ast::ConstDef(it) => { decl_with_ascription(it) }, |
131 | ast::StaticDef(it) => { decl_with_ascription(it) }, | 131 | ast::StaticDef(it) => { decl_with_ascription(it) }, |
132 | ast::ImplBlock(it) => { | 132 | ast::ImplDef(it) => { |
133 | let target_type = it.target_type()?; | 133 | let target_type = it.target_type()?; |
134 | let target_trait = it.target_trait(); | 134 | let target_trait = it.target_trait(); |
135 | let label = match target_trait { | 135 | let label = match target_trait { |
@@ -360,7 +360,7 @@ fn very_obsolete() {} | |||
360 | label: "impl E", | 360 | label: "impl E", |
361 | navigation_range: [239; 240), | 361 | navigation_range: [239; 240), |
362 | node_range: [234; 243), | 362 | node_range: [234; 243), |
363 | kind: IMPL_BLOCK, | 363 | kind: IMPL_DEF, |
364 | detail: None, | 364 | detail: None, |
365 | deprecated: false, | 365 | deprecated: false, |
366 | }, | 366 | }, |
@@ -369,7 +369,7 @@ fn very_obsolete() {} | |||
369 | label: "impl fmt::Debug for E", | 369 | label: "impl fmt::Debug for E", |
370 | navigation_range: [265; 266), | 370 | navigation_range: [265; 266), |
371 | node_range: [245; 269), | 371 | node_range: [245; 269), |
372 | kind: IMPL_BLOCK, | 372 | kind: IMPL_DEF, |
373 | detail: None, | 373 | detail: None, |
374 | deprecated: false, | 374 | deprecated: false, |
375 | }, | 375 | }, |