diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-05-16 18:03:43 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-16 18:03:43 +0100 |
commit | 201dbbe6da180c47f2c866128f26a48378768bbc (patch) | |
tree | 6a8235bfb9867ed912236e7ebb67af118321061e /crates/ide/src/diagnostics.rs | |
parent | 9df0a2336829c54fbbc57ee8c8585aff345d9e47 (diff) | |
parent | 1859df37fd6e308ea4304f69baae038ec09fe424 (diff) |
Merge #8854
8854: internal: use mutable syntax trees when filling fields r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src/diagnostics.rs')
-rw-r--r-- | crates/ide/src/diagnostics.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ide/src/diagnostics.rs b/crates/ide/src/diagnostics.rs index 273d8cfbb..d5fba6740 100644 --- a/crates/ide/src/diagnostics.rs +++ b/crates/ide/src/diagnostics.rs | |||
@@ -579,7 +579,7 @@ fn test_fn() { | |||
579 | struct TestStruct { one: i32, two: i64 } | 579 | struct TestStruct { one: i32, two: i64 } |
580 | 580 | ||
581 | fn test_fn() { | 581 | fn test_fn() { |
582 | let s = TestStruct { one: (), two: ()}; | 582 | let s = TestStruct { one: (), two: () }; |
583 | } | 583 | } |
584 | "#, | 584 | "#, |
585 | ); | 585 | ); |
@@ -599,7 +599,7 @@ impl TestStruct { | |||
599 | struct TestStruct { one: i32 } | 599 | struct TestStruct { one: i32 } |
600 | 600 | ||
601 | impl TestStruct { | 601 | impl TestStruct { |
602 | fn test_fn() { let s = Self { one: ()}; } | 602 | fn test_fn() { let s = Self { one: () }; } |
603 | } | 603 | } |
604 | "#, | 604 | "#, |
605 | ); | 605 | ); |
@@ -792,7 +792,7 @@ fn main() { | |||
792 | pub struct Foo { pub a: i32, pub b: i32 } | 792 | pub struct Foo { pub a: i32, pub b: i32 } |
793 | "#, | 793 | "#, |
794 | r#" | 794 | r#" |
795 | fn some(, b: ()) {} | 795 | fn some(, b: () ) {} |
796 | fn items() {} | 796 | fn items() {} |
797 | fn here() {} | 797 | fn here() {} |
798 | 798 | ||