File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,19 @@ fn main() {
10
10
None => return ,
11
11
} ;
12
12
13
+ if compiler >= 80 {
14
+ println ! ( "cargo:rustc-check-cfg=cfg(doc_cfg)" ) ;
15
+ println ! ( "cargo:rustc-check-cfg=cfg(no_alloc_crate)" ) ;
16
+ println ! ( "cargo:rustc-check-cfg=cfg(no_const_vec_new)" ) ;
17
+ println ! ( "cargo:rustc-check-cfg=cfg(no_exhaustive_int_match)" ) ;
18
+ println ! ( "cargo:rustc-check-cfg=cfg(no_non_exhaustive)" ) ;
19
+ println ! ( "cargo:rustc-check-cfg=cfg(no_nonzero_bitscan)" ) ;
20
+ println ! ( "cargo:rustc-check-cfg=cfg(no_str_strip_prefix)" ) ;
21
+ println ! ( "cargo:rustc-check-cfg=cfg(no_track_caller)" ) ;
22
+ println ! ( "cargo:rustc-check-cfg=cfg(no_unsafe_op_in_unsafe_fn_lint)" ) ;
23
+ println ! ( "cargo:rustc-check-cfg=cfg(test_node_semver)" ) ;
24
+ }
25
+
13
26
if compiler < 33 {
14
27
// Exhaustive integer patterns. On older compilers, a final `_` arm is
15
28
// required even if every possible integer value is otherwise covered.
You can’t perform that action at this time.
0 commit comments