Skip to content

Commit 36fc3b7

Browse files
Rust: Add schema upgrade and downgrade for rust-analyzer 0.0.357
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f1d754b commit 36fc3b7

8 files changed

Lines changed: 15055 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class Element extends @element {
2+
string toString() { none() }
3+
}
4+
5+
class Location extends @location_default {
6+
string toString() { none() }
7+
}
8+
9+
// `CfgPredExpr` and `CfgPredPat` are new node kinds with no representation in the old schema, so we
10+
// scrub their locations.
11+
query predicate new_locatable_locations(Element id, Location location) {
12+
locatable_locations(id, location) and not cfg_pred_exprs(id) and not cfg_pred_pats(id)
13+
}

0 commit comments

Comments
 (0)