mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Use shorthand field syntax in destructures
This commit is contained in:
parent
924eecf4af
commit
cb60708274
3 changed files with 84 additions and 29 deletions
|
@ -622,7 +622,7 @@ fn foo() {
|
|||
expect![[r#"
|
||||
f RECORD_FIELD FileId(0) 15..21 15..16 Other
|
||||
|
||||
FileId(0) 55..56 Other Read
|
||||
FileId(0) 55..56 RecordFieldExprOrPat Read
|
||||
FileId(0) 68..69 Other Write
|
||||
"#]],
|
||||
);
|
||||
|
@ -757,7 +757,7 @@ fn f() -> m::En {
|
|||
expect![[r#"
|
||||
field RECORD_FIELD FileId(0) 56..65 56..61 Other
|
||||
|
||||
FileId(0) 125..130 Other Read
|
||||
FileId(0) 125..130 RecordFieldExprOrPat Read
|
||||
"#]],
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue