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 | |
parent | 7a39bc3ba29351feabcd4a16e12568a9e12818ca (diff) |
Remove dead code
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/ast/extensions.rs | 2 | ||||
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 5 |
2 files changed, 5 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) |
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index f0e16dc2b..a796e78b1 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -19,6 +19,11 @@ | |||
19 | //! [RFC]: <https://github.com/rust-lang/rfcs/pull/2256> | 19 | //! [RFC]: <https://github.com/rust-lang/rfcs/pull/2256> |
20 | //! [Swift]: <https://github.com/apple/swift/blob/13d593df6f359d0cb2fc81cfaac273297c539455/lib/Syntax/README.md> | 20 | //! [Swift]: <https://github.com/apple/swift/blob/13d593df6f359d0cb2fc81cfaac273297c539455/lib/Syntax/README.md> |
21 | 21 | ||
22 | #[allow(unused)] | ||
23 | macro_rules! eprintln { | ||
24 | ($($tt:tt)*) => { stdx::eprintln!($($tt)*) }; | ||
25 | } | ||
26 | |||
22 | mod syntax_node; | 27 | mod syntax_node; |
23 | mod syntax_error; | 28 | mod syntax_error; |
24 | mod parsing; | 29 | mod parsing; |