File tree 2 files changed +12
-11
lines changed
2 files changed +12
-11
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 alloc tests without x.py without ending up with two copies of alloc, 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) ) ]
63
+ //
59
64
#![ allow( unused_attributes) ]
60
65
#![ stable( feature = "alloc" , since = "1.36.0" ) ]
61
66
#![ doc(
75
80
) ) ]
76
81
#![ no_std]
77
82
#![ needs_allocator]
78
- // To run alloc tests without x.py without ending up with two copies of alloc, Miri needs to be
79
- // able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
80
- // rustc itself never sets the feature, so this line has no affect there.
81
- #![ cfg( any( not( feature = "miri-test-libstd" ) , test, doctest) ) ]
82
- //
83
83
// Lints:
84
84
#![ deny( unsafe_op_in_unsafe_fn) ]
85
85
#![ deny( fuzzy_provenance_casts) ]
Original file line number Diff line number Diff line change 188
188
//! [array]: prim@array
189
189
//! [slice]: prim@slice
190
190
191
+ // To run std tests without x.py without ending up with two copies of std, 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
+ //
191
198
#![ cfg_attr( not( feature = "restricted-std" ) , stable( feature = "rust1" , since = "1.0.0" ) ) ]
192
199
#![ cfg_attr( feature = "restricted-std" , unstable( feature = "restricted_std" , issue = "none" ) ) ]
193
200
#![ doc(
202
209
no_global_oom_handling,
203
210
not( no_global_oom_handling)
204
211
) ) ]
205
- // To run std tests without x.py without ending up with two copies of std, Miri needs to be
206
- // able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>.
207
- // rustc itself never sets the feature, so this line has no affect there.
208
- #![ cfg( any( not( feature = "miri-test-libstd" ) , test, doctest) ) ]
209
- // miri-test-libstd also prefers to make std use the sysroot versions of the dependencies.
210
- #![ cfg_attr( feature = "miri-test-libstd" , feature( rustc_private) ) ]
211
212
// Don't link to std. We are std.
212
213
#![ no_std]
213
214
// Tell the compiler to link to either panic_abort or panic_unwind
You can’t perform that action at this time.
0 commit comments