File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 5656//! [`Rc`]: rc
5757//! [`RefCell`]: core::cell
5858
59+ // To run liballoc tests without x.py without ending up with two copies of liballoc, Miri needs to be
60+ // able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
61+ // rustc itself never sets the feature, so this line has no affect there.
62+ #![ cfg( any( not( feature = "miri-test-libstd" ) , test, doctest) ) ]
5963#![ allow( unused_attributes) ]
6064#![ stable( feature = "alloc" , since = "1.36.0" ) ]
6165#![ doc(
Original file line number Diff line number Diff line change 4949//
5050// This cfg won't affect doc tests.
5151#![ cfg( not( test) ) ]
52+ // To run libcore tests without x.py without ending up with two copies of libcore, Miri needs to be
53+ // able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
54+ // rustc itself never sets the feature, so this line has no affect there.
55+ #![ cfg( any( not( feature = "miri-test-libstd" ) , test, doctest) ) ]
5256#![ stable( feature = "core" , since = "1.6.0" ) ]
5357#![ doc(
5458 html_playground_url = "https://play.rust-lang.org/" ,
You can’t perform that action at this time.
0 commit comments