Commit ccba3e0
Deduplicate patches before applying them to sources (scala#24215)
Fixes scala#24213 - deduplicate patches by content and span.
Similar issues were spotted for code `using` rewrites resulting in
invalid `using using` introduced by compiler.
Issue might arise if some reason compiler typechecks the same code twice1 parent 7efb315 commit ccba3e0
File tree
3 files changed
+12
-2
lines changed- compiler/src/dotty/tools/dotc/rewrites
- tests/rewrites
3 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
| 46 | + | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments