aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-11 18:25:33 +0100
committerAleksey Kladov <[email protected]>2020-04-11 18:36:31 +0100
commit0aece75cdd40daa4d48484103cfcd36ba13ba076 (patch)
tree6cfd504aa174c971242f5f0d16e8d0a7ff216ba2 /crates/ra_syntax/src/ast
parent7a39bc3ba29351feabcd4a16e12568a9e12818ca (diff)
Remove dead code
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/extensions.rs2
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
190impl ast::RecordField { 190impl 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)