@@ -5,7 +5,7 @@ use std::str;
5
5
// List of cfgs this build script is allowed to set. The list is needed to support check-cfg, as we
6
6
// need to know all the possible cfgs that this script will set. If you need to set another cfg
7
7
// make sure to add it to this list as well.
8
- const ALLOWED_CFGS : & [ & str ] = & [
8
+ const ALLOWED_CFGS : & ' static [ & ' static str ] = & [
9
9
"freebsd10" ,
10
10
"freebsd11" ,
11
11
"freebsd12" ,
@@ -30,7 +30,7 @@ const ALLOWED_CFGS: &[&str] = &[
30
30
] ;
31
31
32
32
// Extra values to allow for check-cfg.
33
- const CHECK_CFG_EXTRA : & [ ( & str , & [ & str ] ) ] = & [
33
+ const CHECK_CFG_EXTRA : & ' static [ ( & ' static str , & ' static [ & ' static str ] ) ] = & [
34
34
( "target_os" , & [ "switch" , "aix" , "ohos" ] ) ,
35
35
( "target_env" , & [ "illumos" , "wasi" , "aix" , "ohos" ] ) ,
36
36
( "target_arch" , & [ "loongarch64" ] ) ,
@@ -158,7 +158,7 @@ fn main() {
158
158
for cfg in ALLOWED_CFGS {
159
159
println ! ( "cargo:rustc-check-cfg=values({})" , cfg) ;
160
160
}
161
- for ( name, values) in CHECK_CFG_EXTRA {
161
+ for & ( name, values) in CHECK_CFG_EXTRA {
162
162
let values = values. join ( "\" ,\" " ) ;
163
163
println ! ( "cargo:rustc-check-cfg=values({},\" {}\" )" , name, values) ;
164
164
}
0 commit comments