@@ -12,7 +12,6 @@ pub const APPLICABILITY_VALUES: [[&str; 3]; 4] = [
1212 [ "rustc_lint_defs" , "Applicability" , "MachineApplicable" ] ,
1313] ;
1414pub const DIAG : [ & str ; 2 ] = [ "rustc_errors" , "Diag" ] ;
15- pub const CSTRING_AS_C_STR : [ & str ; 5 ] = [ "alloc" , "ffi" , "c_str" , "CString" , "as_c_str" ] ;
1615pub const EARLY_CONTEXT : [ & str ; 2 ] = [ "rustc_lint" , "EarlyContext" ] ;
1716pub const EARLY_LINT_PASS : [ & str ; 3 ] = [ "rustc_lint" , "passes" , "EarlyLintPass" ] ;
1817pub 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"];
4039pub const LINT : [ & str ; 2 ] = [ "rustc_lint_defs" , "Lint" ] ;
4140pub const MSRV : [ & str ; 3 ] = [ "clippy_config" , "msrvs" , "Msrv" ] ;
4241pub 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" ] ;
4442pub const OS_STR_TO_OS_STRING : [ & str ; 5 ] = [ "std" , "ffi" , "os_str" , "OsStr" , "to_os_string" ] ;
4543pub const PARKING_LOT_MUTEX_GUARD : [ & str ; 3 ] = [ "lock_api" , "mutex" , "MutexGuard" ] ;
4644pub const PARKING_LOT_RWLOCK_READ_GUARD : [ & str ; 3 ] = [ "lock_api" , "rwlock" , "RwLockReadGuard" ] ;
4745pub 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" ] ;
4946pub const PATH_MAIN_SEPARATOR : [ & str ; 3 ] = [ "std" , "path" , "MAIN_SEPARATOR" ] ;
5047pub const PATH_TO_PATH_BUF : [ & str ; 4 ] = [ "std" , "path" , "Path" , "to_path_buf" ] ;
5148#[ cfg_attr( not( unix) , allow( clippy:: invalid_paths) ) ]
@@ -62,8 +59,6 @@ pub const SERDE_DE_VISITOR: [&str; 3] = ["serde", "de", "Visitor"];
6259pub const SLICE_INTO_VEC : [ & str ; 4 ] = [ "alloc" , "slice" , "<impl [T]>" , "into_vec" ] ;
6360pub const STD_IO_SEEK_FROM_CURRENT : [ & str ; 4 ] = [ "std" , "io" , "SeekFrom" , "Current" ] ;
6461pub 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" ] ;
6762pub const STRING_NEW : [ & str ; 4 ] = [ "alloc" , "string" , "String" , "new" ] ;
6863pub const STR_ENDS_WITH : [ & str ; 4 ] = [ "core" , "str" , "<impl str>" , "ends_with" ] ;
6964pub 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
8580pub const TOKIO_IO_OPEN_OPTIONS : [ & str ; 4 ] = [ "tokio" , "fs" , "open_options" , "OpenOptions" ] ;
8681#[ expect( clippy:: invalid_paths) ] // internal lints do not know about all external crates
8782pub 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" ] ;
9083pub const VEC_FROM_ELEM : [ & str ; 3 ] = [ "alloc" , "vec" , "from_elem" ] ;
9184pub const VEC_NEW : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "new" ] ;
9285pub const VEC_WITH_CAPACITY : [ & str ; 4 ] = [ "alloc" , "vec" , "Vec" , "with_capacity" ] ;
0 commit comments