@@ -81,14 +81,13 @@ const LLD_FILE_NAMES: &[&str] = &["ld.lld", "ld64.lld", "lld-link", "wasm-ld"];
81
81
82
82
/// Extra `--check-cfg` to add when building the compiler or tools
83
83
/// (Mode restriction, config name, config values (if any))
84
- #[ expect( clippy:: type_complexity) ] // It's fine for hard-coded list and type is explained above.
85
- const EXTRA_CHECK_CFGS : & [ ( Option < Mode > , & str , Option < & [ & ' static str ] > ) ] = & [
86
- ( Some ( Mode :: Rustc ) , "bootstrap" , None ) ,
87
- ( Some ( Mode :: Codegen ) , "bootstrap" , None ) ,
88
- ( Some ( Mode :: ToolRustcPrivate ) , "bootstrap" , None ) ,
89
- ( Some ( Mode :: ToolStd ) , "bootstrap" , None ) ,
90
- ( Some ( Mode :: ToolRustcPrivate ) , "rust_analyzer" , None ) ,
91
- ( Some ( Mode :: ToolStd ) , "rust_analyzer" , None ) ,
84
+ const EXTRA_CHECK_CFGS : & [ ( Option < Mode > , & str , & [ & str ] ) ] = & [
85
+ ( Some ( Mode :: Rustc ) , "bootstrap" , & [ ] ) ,
86
+ ( Some ( Mode :: Codegen ) , "bootstrap" , & [ ] ) ,
87
+ ( Some ( Mode :: ToolRustcPrivate ) , "bootstrap" , & [ ] ) ,
88
+ ( Some ( Mode :: ToolStd ) , "bootstrap" , & [ ] ) ,
89
+ ( Some ( Mode :: ToolRustcPrivate ) , "rust_analyzer" , & [ ] ) ,
90
+ ( Some ( Mode :: ToolStd ) , "rust_analyzer" , & [ ] ) ,
92
91
// Any library specific cfgs like `target_os`, `target_arch` should be put in
93
92
// priority the `[lints.rust.unexpected_cfgs.check-cfg]` table
94
93
// in the appropriate `library/{std,alloc,core}/Cargo.toml`
0 commit comments