diff options
| author | DropDemBits <r3usrlnd@gmail.com> | 2023-07-16 23:03:39 -0400 |
|---|---|---|
| committer | DropDemBits <r3usrlnd@gmail.com> | 2023-11-11 21:07:19 -0500 |
| commit | 4aaa592a9a7461cf844e70bcc39a16173affab26 (patch) | |
| tree | 02a74c7a79696801577bf17fb5a311ea27d6e98b /crates/syntax | |
| parent | f3dcc67dfa62ac0950352c719e657687428f79f6 (diff) | |
| download | rust-4aaa592a9a7461cf844e70bcc39a16173affab26.tar.gz rust-4aaa592a9a7461cf844e70bcc39a16173affab26.zip | |
Migrate `destructure_tuple_binding` to mutable ast
Due to the way the current tree mutation api works, we need to collect changes before we can apply them to the real syntax tree, and also can only switch to a file once. `destructure_tuple_binding_in_sub_pattern` also gets migrated even though can't be used.
Diffstat (limited to 'crates/syntax')
| -rw-r--r-- | crates/syntax/src/ast/make.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/syntax/src/ast/make.rs b/crates/syntax/src/ast/make.rs index 8a701f6292a..ad63cc55862 100644 --- a/crates/syntax/src/ast/make.rs +++ b/crates/syntax/src/ast/make.rs @@ -1133,7 +1133,7 @@ pub mod tokens { pub(super) static SOURCE_FILE: Lazy<Parse<SourceFile>> = Lazy::new(|| { SourceFile::parse( - "const C: <()>::Item = ( true && true , true || true , 1 != 1, 2 == 2, 3 < 3, 4 <= 4, 5 > 5, 6 >= 6, !true, *p, &p , &mut p)\n;\n\n", + "const C: <()>::Item = ( true && true , true || true , 1 != 1, 2 == 2, 3 < 3, 4 <= 4, 5 > 5, 6 >= 6, !true, *p, &p , &mut p, { let a @ [] })\n;\n\n", ) }); |
