Commit 85886ee
Rust: add DB upgrade/downgrade scripts and change note for ra_ap 0.0.347
The schema delta for ra_ap 0.0.347 adds the new node kinds DerefPat,
ImplRestriction, IncludeBytesExpr, MutRestriction, NotNull, PatternTypeRepr and
VisibilityInner, moves a Visibility path onto the new VisibilityInner, replaces
the text-less FormatArgsArgName placeholder with a Name, and adds attrs to the
inline assembly nodes, mut_restriction to Struct/TupleField and impl_restriction
to Trait.
The upgrade repurposes the old format-arg placeholder ids as Name ids (avoiding
dangling refs) and synthesises a VisibilityInner per visibility with a path. The
downgrade rejoins the visibility path, repurposes ids back to the placeholder,
and scrubs the locations of the deleted node kinds. compatibility is partial:
the new node kinds are empty on old DBs, so a rebuild yields strictly-better
results while existing queries keep working.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 890cb55d-0437-4bd7-9268-87b8897ada011 parent f334221 commit 85886ee
9 files changed
Lines changed: 14881 additions & 0 deletions
File tree
- rust
- downgrades/852696f20117c338fbb4e6a4f5ed69df79682c37
- ql/lib
- change-notes
- upgrades/ed6b1d3d51401eafee5e4b24e1093d731309ac94
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments