File tree 3 files changed +6
-2
lines changed 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -43,3 +43,6 @@ default = ["icu_capi/default_components"]
43
43
44
44
[build-dependencies ]
45
45
rustc_version = " 0.4"
46
+
47
+ [lints .rust ]
48
+ unexpected_cfgs = { level = " warn" , check-cfg = [' cfg(needs_alloc_error_handler)' ] }
Original file line number Diff line number Diff line change @@ -27,12 +27,13 @@ fn needs_alloc_error_handler() -> Option<bool> {
27
27
}
28
28
29
29
fn main ( ) {
30
+ println ! ( "cargo:rustc-check-cfg=cfg(needs_alloc_error_handler)" ) ;
31
+
30
32
match env:: var ( "CARGO_CFG_TARGET_OS" ) {
31
33
Ok ( v) if v == "none" => ( ) ,
32
34
// Only on target_os = none
33
35
_ => return ,
34
36
} ;
35
-
36
37
if let Some ( true ) = needs_alloc_error_handler ( ) {
37
38
println ! ( "cargo:rustc-cfg=needs_alloc_error_handler" ) ;
38
39
}
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ macro_rules! cb {
130
130
/// corresponding Cargo features has been enabled.
131
131
// Excludes the hello world marker, as that generally should not be generated.
132
132
pub fn all_markers( ) -> Vec <DataMarkerInfo > {
133
- #[ cfg( features = "experimental_components" ) ]
133
+ #[ cfg( feature = "experimental_components" ) ]
134
134
log:: warn!( "The icu_datagen crates has been built with the `experimental_components` feature, so `all_markers` returns experimental markers" ) ;
135
135
vec![
136
136
$(
You can’t perform that action at this time.
0 commit comments