diff options
author | Aleksey Kladov <[email protected]> | 2020-04-11 18:25:33 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-11 18:36:31 +0100 |
commit | 0aece75cdd40daa4d48484103cfcd36ba13ba076 (patch) | |
tree | 6cfd504aa174c971242f5f0d16e8d0a7ff216ba2 /crates/ra_syntax/src/ast | |
parent | 7a39bc3ba29351feabcd4a16e12568a9e12818ca (diff) |
Remove dead code
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/extensions.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/extensions.rs b/crates/ra_syntax/src/ast/extensions.rs index 7dc024991..63e272fbf 100644 --- a/crates/ra_syntax/src/ast/extensions.rs +++ b/crates/ra_syntax/src/ast/extensions.rs | |||
@@ -189,8 +189,6 @@ impl ast::StructDef { | |||
189 | 189 | ||
190 | impl ast::RecordField { | 190 | impl ast::RecordField { |
191 | pub fn for_field_name(field_name: &ast::NameRef) -> Option<ast::RecordField> { | 191 | pub fn for_field_name(field_name: &ast::NameRef) -> Option<ast::RecordField> { |
192 | eprintln!("field_name = {}", field_name); | ||
193 | dbg!(field_name.syntax().ancestors().nth(6)); | ||
194 | let candidate = | 192 | let candidate = |
195 | field_name.syntax().parent().and_then(ast::RecordField::cast).or_else(|| { | 193 | field_name.syntax().parent().and_then(ast::RecordField::cast).or_else(|| { |
196 | field_name.syntax().ancestors().nth(4).and_then(ast::RecordField::cast) | 194 | field_name.syntax().ancestors().nth(4).and_then(ast::RecordField::cast) |