File tree 2 files changed +18
-1
lines changed
2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 23
23
- features
24
24
- ffi
25
25
- ffi-header
26
+ - unexpected-cfgs
26
27
- doc
27
28
- check-external-types
28
29
- udeps
@@ -220,6 +221,22 @@ jobs:
220
221
- name : Ensure that hyper.h is up to date
221
222
run : ./capi/gen_header.sh --verify
222
223
224
+ unexpected-cfgs :
225
+ runs-on : ubuntu-latest
226
+ needs : [style]
227
+ steps :
228
+ - uses : actions/checkout@v4
229
+ - uses : dtolnay/rust-toolchain@nightly
230
+ - uses : Swatinem/rust-cache@v2
231
+ - run : cargo check --all-features
232
+ env :
233
+ RUSTFLAGS : >-
234
+ -D unexpected_cfgs
235
+ --cfg check_unexpected_cfgs
236
+ --cfg hyper_unstable_tracing
237
+ --cfg hyper_unstable_ffi
238
+ --check-cfg=cfg(check_unexpected_cfgs,hyper_unstable_tracing,hyper_unstable_ffi)
239
+
223
240
doc :
224
241
name : Build docs
225
242
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