Repository navigation
ridx 0.3.5
Figures: the suite on the 0.3.5 and 0.3.4 release builds on one index (the driver is unchanged; no re-index needed). Every Convert to tuple struct edit 0.3.5 offers on the 7 corpora was applied and compiled (bench/code_action_compile.py): 93 of 93 compile; rust-analyzer's compile in 105 of 141.
Changed
Convert to tuple structis offered on many more structs, always with an edit that compiles: on a struct with awhereclause (moved after the fields); beside a method named like a field; on a struct with a third-party derive the index has seen on a tuple struct that compiled (its helper attributes pass when each key they use was seen there; clap'sParser/Argsstay refused); on a struct built, destructured or implemented in other files (Name { .. }andSelf { .. }there are rewritten); with struct updates from a plain path (..self) and rest patterns (..). Refused where rewriting could not be complete: a free type alias of the struct, a bare path handed to a macro that may build it, fields under#[cfg].codeActionparity1206→1236of2070,codeAction/resolve881→884of2074; no row lost in any of the 38 methods. Latency p501.15→1.26 ms, p9515.3→16.1 ms.
Fixed
Convert to tuple struct: a field access inside the struct's own literal (Self { syntax: self.syntax.clone() }) is rewritten with it; it was left asself.syntax, which breaks the build (E0615) when a method shares the field's name.