@@ -12,7 +12,6 @@ pub const APPLICABILITY_VALUES: [[&str; 3]; 4] = [
12
12
[ "rustc_lint_defs" , "Applicability" , "MachineApplicable" ] ,
13
13
] ;
14
14
pub const DIAG : [ & str ; 2 ] = [ "rustc_errors" , "Diag" ] ;
15
- pub const CSTRING_AS_C_STR : [ & str ; 5 ] = [ "alloc" , "ffi" , "c_str" , "CString" , "as_c_str" ] ;
16
15
pub const EARLY_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "EarlyContext" ] ;
17
16
pub const EARLY_LINT_PASS : [ & str ; 3 ] = [ "rustc_lint" , "passes" , "EarlyLintPass" ] ;
18
17
pub const F32_EPSILON : [ & str ; 4 ] = [ "core" , "f32" , "<impl f32>" , "EPSILON" ] ;
@@ -40,12 +39,10 @@ pub const LATE_LINT_PASS: [&str; 3] = ["rustc_lint", "passes", "LateLintPass"];
40
39
pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
41
40
pub const MSRV : [ & str ; 3 ] = [ "clippy_config" , "msrvs" , "Msrv" ] ;
42
41
pub const OPEN_OPTIONS_NEW : [ & str ; 4 ] = [ "std" , "fs" , "OpenOptions" , "new" ] ;
43
- pub const OS_STRING_AS_OS_STR : [ & str ; 5 ] = [ "std" , "ffi" , "os_str" , "OsString" , "as_os_str" ] ;
44
42
pub const OS_STR_TO_OS_STRING : [ & str ; 5 ] = [ "std" , "ffi" , "os_str" , "OsStr" , "to_os_string" ] ;
45
43
pub const PARKING_LOT_MUTEX_GUARD : [ & str ; 3 ] = [ "lock_api" , "mutex" , "MutexGuard" ] ;
46
44
pub const PARKING_LOT_RWLOCK_READ_GUARD : [ & str ; 3 ] = [ "lock_api" , "rwlock" , "RwLockReadGuard" ] ;
47
45
pub const PARKING_LOT_RWLOCK_WRITE_GUARD : [ & str ; 3 ] = [ "lock_api" , "rwlock" , "RwLockWriteGuard" ] ;
48
- pub const PATH_BUF_AS_PATH : [ & str ; 4 ] = [ "std" , "path" , "PathBuf" , "as_path" ] ;
49
46
pub const PATH_MAIN_SEPARATOR : [ & str ; 3 ] = [ "std" , "path" , "MAIN_SEPARATOR" ] ;
50
47
pub const PATH_TO_PATH_BUF : [ & str ; 4 ] = [ "std" , "path" , "Path" , "to_path_buf" ] ;
51
48
#[ cfg_attr( not( unix) , allow( clippy:: invalid_paths) ) ]
@@ -62,8 +59,6 @@ pub const SERDE_DE_VISITOR: [&str; 3] = ["serde", "de", "Visitor"];
62
59
pub const SLICE_INTO_VEC : [ & str ; 4 ] = [ "alloc" , "slice" , "<impl [T]>" , "into_vec" ] ;
63
60
pub const STD_IO_SEEK_FROM_CURRENT : [ & str ; 4 ] = [ "std" , "io" , "SeekFrom" , "Current" ] ;
64
61
pub const STD_IO_SEEKFROM_START : [ & str ; 4 ] = [ "std" , "io" , "SeekFrom" , "Start" ] ;
65
- pub const STRING_AS_MUT_STR : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "as_mut_str" ] ;
66
- pub const STRING_AS_STR : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "as_str" ] ;
67
62
pub const STRING_NEW : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "new" ] ;
68
63
pub const STR_ENDS_WITH : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "ends_with" ] ;
69
64
pub const STR_LEN : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "len" ] ;
@@ -85,8 +80,6 @@ pub const TOKIO_IO_ASYNCWRITEEXT: [&str; 5] = ["tokio", "io", "util", "async_wri
85
80
pub const TOKIO_IO_OPEN_OPTIONS : [ & str ; 4 ] = [ "tokio" , "fs" , "open_options" , "OpenOptions" ] ;
86
81
#[ expect( clippy:: invalid_paths) ] // internal lints do not know about all external crates
87
82
pub const TOKIO_IO_OPEN_OPTIONS_NEW : [ & str ; 5 ] = [ "tokio" , "fs" , "open_options" , "OpenOptions" , "new" ] ;
88
- pub const VEC_AS_MUT_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_mut_slice" ] ;
89
- pub const VEC_AS_SLICE : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "as_slice" ] ;
90
83
pub const VEC_FROM_ELEM : [ & str ; 3 ] = [ "alloc" , "vec" , "from_elem" ] ;
91
84
pub const VEC_NEW : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "new" ] ;
92
85
pub const VEC_WITH_CAPACITY : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "with_capacity" ] ;
0 commit comments