Merge #6365
6365: Do insertion lookahead in algo::diff r=matklad a=Veykril This is the last blocker for #6287 after this I can update that PR to properly fix things through using `SyntaxRewriter`. This PR also shuffles tests around a bit and adds some more. Ideally this is just a hack until we implement a "proper" diff algorithm that approximates a minimal diff. Maybe something like [gumtree](https://github.com/GumTreeDiff/gumtree)? Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
This commit is contained in:
commit
173e45f872
2 changed files with 139 additions and 59 deletions
|
|
@ -613,7 +613,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