File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ fn main() {
10
10
if target_os == "netbsd" && env:: var ( "RUSTC_STD_NETBSD10" ) . is_ok ( ) {
11
11
println ! ( "cargo:rustc-cfg=netbsd10" ) ;
12
12
}
13
+ println ! ( "cargo:rustc-check-cfg=cfg(restricted_std)" ) ;
13
14
if target_os == "linux"
14
15
|| target_os == "android"
15
16
|| target_os == "netbsd"
@@ -59,7 +60,7 @@ fn main() {
59
60
// - arch=avr
60
61
// - JSON targets
61
62
// - Any new targets that have not been explicitly added above.
62
- println ! ( "cargo:rustc-cfg=feature= \" restricted-std \" " ) ;
63
+ println ! ( "cargo:rustc-cfg=restricted_std " ) ;
63
64
}
64
65
println ! ( "cargo:rustc-env=STD_ENV_ARCH={}" , env:: var( "CARGO_CFG_TARGET_ARCH" ) . unwrap( ) ) ;
65
66
println ! ( "cargo:rustc-cfg=backtrace_in_libstd" ) ;
Original file line number Diff line number Diff line change 213
213
//! [array]: prim@array
214
214
//! [slice]: prim@slice
215
215
216
- #![ cfg_attr( not( feature = "restricted-std" ) , stable( feature = "rust1" , since = "1.0.0" ) ) ]
216
+ #![ cfg_attr( not( restricted_std ) , stable( feature = "rust1" , since = "1.0.0" ) ) ]
217
217
#![ cfg_attr(
218
- feature = "restricted-std" ,
218
+ restricted_std ,
219
219
unstable(
220
220
feature = "restricted_std" ,
221
221
issue = "none" ,
You can’t perform that action at this time.
0 commit comments