Fix clippy's path to the copy intrinsics. · rust-lang/rust@1a80635 (original) (raw)
File tree
1 file changed
lines changed
- src/tools/clippy/clippy_lints/src/utils
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -20,8 +20,8 @@ pub const CLONE_TRAIT: [&str; 3] = ["core", "clone", "Clone"]; | ||
20 | 20 | pub const CLONE_TRAIT_METHOD: [&str; 4] = ["core", "clone", "Clone", "clone"]; |
21 | 21 | pub const CMP_MAX: [&str; 3] = ["core", "cmp", "max"]; |
22 | 22 | pub const CMP_MIN: [&str; 3] = ["core", "cmp", "min"]; |
23 | -pub const COPY: [&str; 3] = ["core", "intrinsics", "copy_nonoverlapping"]; | |
24 | -pub const COPY_NONOVERLAPPING: [&str; 3] = ["core", "intrinsics", "copy"]; | |
23 | +pub const COPY: [&str; 4] = ["core", "intrinsics", "", "copy_nonoverlapping"]; | |
24 | +pub const COPY_NONOVERLAPPING: [&str; 4] = ["core", "intrinsics", "", "copy"]; | |
25 | 25 | pub const COW: [&str; 3] = ["alloc", "borrow", "Cow"]; |
26 | 26 | pub const CSTRING_AS_C_STR: [&str; 5] = ["std", "ffi", "c_str", "CString", "as_c_str"]; |
27 | 27 | pub const DEFAULT_TRAIT: [&str; 3] = ["core", "default", "Default"]; |