Skip to content

alloc::range::RangeArgument → core::ops::RangeBounds #2552

Closed
@SimonSapin

Description

@SimonSapin

rust-lang/rust#49163 proposes renaming and moving this trait, and Clippy contains:

src/tools/clippy/tests/ui/needless_pass_by_value.rs
118:// whitelist RangeArgument
119:fn range<T: ::std::collections::range::RangeArgument<usize>>(range: T) {

src/tools/clippy/clippy_lints/src/utils/paths.rs
58:pub const RANGE_ARGUMENT_TRAIT: [&str; 3] = ["alloc", "range", "RangeArgument"];

The former will likely only cause a deprecation warning, but the latter line might need to be updated top preserve lint behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions