no-redundant-full-slice Disallow indexing a slice with the complete range Indexing a slice with .. borrows the complete slice without changing its bounds. Instead, you SHOULD use the slice directly and let the required access be inferred. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function visit(values: [int32]): void { consume(values[..]); } function consume(values: &readonly [int32]): void { // intentionally empty } Accepted function visit(values: [int32]): void { consume(values); } function consume(values: &readonly [int32]): void { // intentionally empty } Prior art - Clippy ยท redundantslicing language/linter/src/rules/style/noredundantfullslice.rs:8