internal: use mutable syntax trees when filling fields

This commit is contained in:
Aleksey Kladov 2021-05-16 18:10:56 +03:00
parent 9df0a23368
commit 1859df37fd
4 changed files with 49 additions and 104 deletions

View file

@ -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() {}