File tree 6 files changed +5
-11
lines changed
crates/cargo-test-support
6 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 35
35
CARGO_PROFILE_TEST_DEBUG : 1
36
36
CARGO_INCREMENTAL : 0
37
37
CARGO_PUBLIC_NETWORK_TESTS : 1
38
+ # Deny warnings on CI to avoid warnings getting into the codebase.
39
+ RUSTFLAGS : -D warnings
38
40
strategy :
39
41
matrix :
40
42
include :
85
87
run : echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
86
88
if : " !contains(matrix.rust, 'stable')"
87
89
88
- # Deny warnings on CI to avoid warnings getting into the codebase.
89
- - run : cargo test --features 'deny-warnings'
90
+ - run : cargo test
90
91
# The testsuite generates a huge amount of data, and fetch-smoke-test was
91
92
# running out of disk space.
92
93
- name : Clear test output
@@ -100,8 +101,8 @@ jobs:
100
101
run : |
101
102
# This only tests `cargo fix` because fix-proxy-mode is one of the most
102
103
# complicated subprocess management in Cargo.
103
- cargo test --test testsuite --features 'deny-warnings' -- fix::
104
- - run : cargo test --features 'deny-warnings' --manifest-path crates/cargo-test-support/Cargo.toml
104
+ cargo test --test testsuite -- fix::
105
+ - run : cargo test --features --manifest-path crates/cargo-test-support/Cargo.toml
105
106
env :
106
107
CARGO_TARGET_DIR : target
107
108
- run : cargo test -p cargo-platform
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ test = false
112
112
doc = false
113
113
114
114
[features ]
115
- deny-warnings = []
116
115
vendored-openssl = [" openssl/vendored" ]
117
116
vendored-libgit2 = [" libgit2-sys/vendored" ]
118
117
pretty-env-logger = [" pretty_env_logger" ]
Original file line number Diff line number Diff line change @@ -30,6 +30,3 @@ url = "2.2.2"
30
30
31
31
[target .'cfg(windows)' .dependencies ]
32
32
windows-sys = { version = " 0.45.0" , features = [" Win32_Storage_FileSystem" ] }
33
-
34
- [features ]
35
- deny-warnings = []
Original file line number Diff line number Diff line change 3
3
//! See <https://rust-lang.github.io/cargo/contrib/> for a guide on writing tests.
4
4
5
5
#![ allow( clippy:: all) ]
6
- #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
7
6
8
7
use std:: env;
9
8
use std:: ffi:: OsStr ;
Original file line number Diff line number Diff line change 1
1
// For various reasons, some idioms are still allow'ed, but we would like to
2
2
// test and enforce them.
3
3
#![ warn( rust_2018_idioms) ]
4
- #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
5
4
// Due to some of the default clippy lints being somewhat subjective and not
6
5
// necessarily an improvement, we prefer to not use them at this time.
7
6
#![ allow( clippy:: all) ]
Original file line number Diff line number Diff line change 1
1
// See src/cargo/lib.rs for notes on these lint settings.
2
2
#![ warn( rust_2018_idioms) ]
3
3
#![ allow( clippy:: all) ]
4
- #![ cfg_attr( feature = "deny-warnings" , deny( warnings) ) ]
5
4
6
5
#[ macro_use]
7
6
extern crate cargo_test_macro;
You can’t perform that action at this time.
0 commit comments