mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: use mutable syntax trees when filling fields
This commit is contained in:
parent
9df0a23368
commit
1859df37fd
4 changed files with 49 additions and 104 deletions
|
@ -579,7 +579,7 @@ fn test_fn() {
|
|||
struct TestStruct { one: i32, two: i64 }
|
||||
|
||||
fn test_fn() {
|
||||
let s = TestStruct { one: (), two: ()};
|
||||
let s = TestStruct { one: (), two: () };
|
||||
}
|
||||
"#,
|
||||
);
|
||||
|
@ -599,7 +599,7 @@ impl TestStruct {
|
|||
struct TestStruct { one: i32 }
|
||||
|
||||
impl TestStruct {
|
||||
fn test_fn() { let s = Self { one: ()}; }
|
||||
fn test_fn() { let s = Self { one: () }; }
|
||||
}
|
||||
"#,
|
||||
);
|
||||
|
@ -792,7 +792,7 @@ fn main() {
|
|||
pub struct Foo { pub a: i32, pub b: i32 }
|
||||
"#,
|
||||
r#"
|
||||
fn some(, b: ()) {}
|
||||
fn some(, b: () ) {}
|
||||
fn items() {}
|
||||
fn here() {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue