File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,17 @@ jobs:
165
165
run : rustup component add rust-src
166
166
- name : Run tests with sanitizer
167
167
run : make test_sanitizer SAN=${{ matrix.sanitizer }}
168
+ UnexpectedCfgs :
169
+ runs-on : ubuntu-latest
170
+ steps :
171
+ - uses : actions/checkout@v4
172
+ - uses : dtolnay/rust-toolchain@nightly
173
+ - uses : Swatinem/rust-cache@v2
174
+ - run : cargo check --all-features
175
+ env :
176
+ RUSTFLAGS : >-
177
+ -D unexpected_cfgs
178
+ --cfg internal_check_unexpected_cfgs
168
179
# Single job required to merge the pr.
169
180
Passed :
170
181
runs-on : ubuntu-latest
@@ -179,5 +190,6 @@ jobs:
179
190
- Rustfmt
180
191
- CheckTargets
181
192
- CheckTier3Targets
193
+ - UnexpectedCfg
182
194
steps :
183
195
- run : exit 0
Original file line number Diff line number Diff line change 5
5
unused_imports,
6
6
dead_code
7
7
) ]
8
+ #![ cfg_attr( internal_check_unexpected_cfgs, allow( unexpected_cfgs) ) ]
8
9
#![ cfg_attr( docsrs, feature( doc_cfg) ) ]
9
10
// Disallow warnings when running tests.
10
11
#![ cfg_attr( test, deny( warnings) ) ]
You can’t perform that action at this time.
0 commit comments