mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Remove dead code
This commit is contained in:
parent
7a39bc3ba2
commit
0aece75cdd
8 changed files with 40 additions and 55 deletions
|
@ -189,8 +189,6 @@ impl ast::StructDef {
|
|||
|
||||
impl ast::RecordField {
|
||||
pub fn for_field_name(field_name: &ast::NameRef) -> Option<ast::RecordField> {
|
||||
eprintln!("field_name = {}", field_name);
|
||||
dbg!(field_name.syntax().ancestors().nth(6));
|
||||
let candidate =
|
||||
field_name.syntax().parent().and_then(ast::RecordField::cast).or_else(|| {
|
||||
field_name.syntax().ancestors().nth(4).and_then(ast::RecordField::cast)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue