File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,22 @@ jobs:
220
220
- name : Ensure that hyper.h is up to date
221
221
run : ./capi/gen_header.sh --verify
222
222
223
+ unexpected-cfgs :
224
+ runs-on : ubuntu-latest
225
+ needs : [style]
226
+ steps :
227
+ - uses : actions/checkout@v4
228
+ - uses : dtolnay/rust-toolchain@nightly
229
+ - uses : Swatinem/rust-cache@v2
230
+ - run : cargo check --all-features
231
+ env :
232
+ RUSTFLAGS : |
233
+ -D unexpected_cfgs
234
+ --cfg check_unexpected_cfgs
235
+ --cfg hyper_unstable_tracing
236
+ --cfg hyper_unstable_ffi
237
+ --check-cfg=cfg(check_unexpected_cfgs,hyper_unstable_tracing,hyper_unstable_ffi)
238
+
223
239
doc :
224
240
name : Build docs
225
241
needs : [style, test]
Original file line number Diff line number Diff line change 1
1
#![ deny( missing_docs) ]
2
2
#![ deny( missing_debug_implementations) ]
3
- #![ allow( unexpected_cfgs) ]
3
+ #![ cfg_attr ( not ( check_unexpected_cfgs ) , allow( unexpected_cfgs) ) ]
4
4
#![ cfg_attr( test, deny( rust_2018_idioms) ) ]
5
5
#![ cfg_attr( all( test, feature = "full" ) , deny( unreachable_pub) ) ]
6
6
#![ cfg_attr( all( test, feature = "full" ) , deny( warnings) ) ]
You can’t perform that action at this time.
0 commit comments