diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/extensions.rs')
-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) |