File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 56
56
//! [`Rc`]: rc
57
57
//! [`RefCell`]: core::cell
58
58
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) ) ]
59
63
#![ allow( unused_attributes) ]
60
64
#![ stable( feature = "alloc" , since = "1.36.0" ) ]
61
65
#![ doc(
Original file line number Diff line number Diff line change 49
49
//
50
50
// This cfg won't affect doc tests.
51
51
#![ 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) ) ]
52
56
#![ stable( feature = "core" , since = "1.6.0" ) ]
53
57
#![ doc(
54
58
html_playground_url = "https://play.rust-lang.org/" ,
You can’t perform that action at this time.
0 commit comments