This repository was archived by the owner on May 28, 2025. It is now read-only.
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 6060// able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
6161// rustc itself never sets the feature, so this line has no affect there.
6262#![ cfg( any( not( feature = "miri-test-libstd" ) , test, doctest) ) ]
63+ //
6364#![ allow( unused_attributes) ]
6465#![ stable( feature = "alloc" , since = "1.36.0" ) ]
6566#![ doc(
Original file line number Diff line number Diff line change 187187//! [rust-discord]: https://discord.gg/rust-lang
188188//! [array]: prim@array
189189//! [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+ //
190198#![ cfg_attr( not( feature = "restricted-std" ) , stable( feature = "rust1" , since = "1.0.0" ) ) ]
191199#![ cfg_attr( feature = "restricted-std" , unstable( feature = "restricted_std" , issue = "none" ) ) ]
192200#![ doc(
You can’t perform that action at this time.
0 commit comments