318. L0528 reverse_index covers only the whole-list reversed copy (2026-11-22)
- Decision.
[xs[xs.len - 1 - i] for i in 0..xs.len]warns with a fix toxs.reversed()whenxsis a plain path the checker types asList. Other mirrored indexes (a[n - 1 - i]in a loop body, a boundnthat only equalsxs.lenat run time, aStr) get no finding; the catalog'sD.mirror(i)suggestion waits for a fact that tiesnto a list's length. - Why. Only the whole-copy shape has a fix that keeps meaning by
construction (same O(n), same new list). 3
stdfindings, 0 corpusspec.cp; the 67 other[n - 1 - i]sites in corpus/std are left alone. - Reverse. Delete
crates/cpl-lint/src/rules/reverse.rsandspec/lints/reverse_index/.