File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 60
60
// able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
61
61
// rustc itself never sets the feature, so this line has no affect there.
62
62
#![ cfg( any( not( feature = "miri-test-libstd" ) , test, doctest) ) ]
63
+ //
63
64
#![ allow( unused_attributes) ]
64
65
#![ stable( feature = "alloc" , since = "1.36.0" ) ]
65
66
#![ doc(
Original file line number Diff line number Diff line change 187
187
//! [rust-discord]: https://discord.gg/rust-lang
188
188
//! [array]: prim@array
189
189
//! [slice]: prim@slice
190
+
191
+ // To run libstd tests without x.py without ending up with two copies of libstd, Miri needs to be
192
+ // able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
193
+ // rustc itself never sets the feature, so this line has no affect there.
194
+ #![ cfg( any( not( feature = "miri-test-libstd" ) , test, doctest) ) ]
195
+ // miri-test-libstd also prefers to make std use the sysroot versions of the dependencies.
196
+ #![ cfg_attr( feature = "miri-test-libstd" , feature( rustc_private) ) ]
197
+ //
190
198
#![ cfg_attr( not( feature = "restricted-std" ) , stable( feature = "rust1" , since = "1.0.0" ) ) ]
191
199
#![ cfg_attr( feature = "restricted-std" , unstable( feature = "restricted_std" , issue = "none" ) ) ]
192
200
#![ doc(
You can’t perform that action at this time.
0 commit comments