File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,6 @@ parallel = ["dep:libc", "dep:jobserver"]
3333# This is a placeholder feature for people who incorrectly used `cc` with `features = ["jobserver"]`
3434# so that they aren't broken. This has never enabled `parallel`, so we won't do that.
3535jobserver = []
36- # Visual Studio doesn't have clang-cl (Clang/LLVM) installed by default as it's an optional module.
37- # While GitHub Actions runners have it installed, it might cause some failing tests if you don't
38- # have it. Run the tests with "--features disable-clang-cl-tests" if you want to disable related tests.
39- disable-clang-cl-tests = []
4036
4137[dev-dependencies ]
4238tempfile = " 3"
@@ -51,3 +47,6 @@ members = [
5147
5248[patch .crates-io ]
5349cc = { path = " ." }
50+
51+ [lints .rust ]
52+ unexpected_cfgs = { level = " allow" , check-cfg = [' cfg(disable_clang_cl_tests)' ] }
Original file line number Diff line number Diff line change @@ -1202,7 +1202,7 @@ mod impl_ {
12021202 }
12031203
12041204 #[ test]
1205- #[ cfg( not( feature = "disable-clang-cl-tests" ) ) ]
1205+ #[ cfg( not( disable_clang_cl_tests ) ) ]
12061206 fn test_find_llvm_tools ( ) {
12071207 // Import StdEnvGetter from the parent module
12081208 use crate :: windows:: find_tools:: StdEnvGetter ;
Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ fn clang_android() {
853853}
854854
855855#[ cfg( windows) ]
856- #[ cfg( not( feature = "disable-clang-cl-tests" ) ) ]
856+ #[ cfg( not( disable_clang_cl_tests ) ) ]
857857mod msvc_clang_cl_tests {
858858 use super :: { reset_env, Test } ;
859859
You can’t perform that action at this time.
0 commit comments