Repository navigation
ridx 0.3.1
Figures: the 38-method, 7-corpus suite, before (0.3.0 with its driver) and after (the 0.3.1 release build), both indexed afresh with the same Mitts build. Indexes built by 0.3.0 should be rebuilt (ridx index .): the driver now records build scripts and trait functions named by paths.
Changed
textDocument/referenceson a trait item also lists its uses the compiler resolved to an implementation (v.into_iter()on aVec,x.clone()on a type derivingClone), as rust-analyzer does; the uses a macro generates (a derive's body) are left out. Associated types named throughSelfor a type parameter in signatures (-> Result<V::Value, Self::Error>) and inTrait<Assoc = T>bounds are references to the trait's associated type. Parity80.26%→83.62%(1593/1905);documentHighlight92.20%→93.32%, incoming calls91.07%→91.75%; median latency unchanged (0.63 ms→0.66 ms).- Indexing: build scripts of the workspace's own packages are indexed; a trait function named by a path in a body (
From::from(x)) refers to the implementation the arguments select. textDocument/semanticTokens: a target root its own#![cfg(…)]switches off, and an item an outer#[cfg(…)]leaves out of the build, get rust-analyzer's tokens (definitions typed; the names only that code defines or imports, method calls, fields and uses of localsunresolvedReference), and names inside macro arguments in doc examples aregeneric. Parity: full91.90%→94.18%, range88.48%→90.67%, delta92.42%→94.66%; median latency0.45 ms→0.48 ms, p957.2 ms→8.3 ms.workspace/symbolkinds follow rust-analyzer's symbol index (associated functions are functions, associated types type parameters, statics constants, crate roots packages): answers identical to rust-analyzer's643→994of2100.
Fixed
- Indexing with Mitts: a target with
required-featuresthat the main check already built keeps its shard and sidecar, and the extra check's wrapper cache is scoped to the run, so a re-index no longer drops the targets' shards. Onclapthe references ofCommand::long_aboutfound from a test file went from15to42, as from its definition.