-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: The lint should have been triggered on code, but wasn't
Description
Summary
The cloned_ref_to_slice_refs lint does not trigger for implicit clones such as to_owned().
Lint Name
cloned_ref_to_slice_refs
Reproducer
I tried this code:
let _a = String::new();
let _b = &[_a.to_owned()];Expected behavior:
The cloned_ref_to_slice_refs lint should trigger.
Actual behavior:
The lint does not trigger.
Version
nightly
Metadata
Metadata
Assignees
Labels
C-bugCategory: Clippy is not doing the correct thingCategory: Clippy is not doing the correct thingI-false-negativeIssue: The lint should have been triggered on code, but wasn'tIssue: The lint should have been triggered on code, but wasn't