diff options
| author | Ralf Jung <post@ralfj.de> | 2023-06-11 22:15:46 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-06-11 22:15:46 +0200 |
| commit | 3b9b4e5e3d6b45be6d355f0685eb70d99c3ab50a (patch) | |
| tree | 7c13b856c4cd68b312359ad1e71abf28537ad565 /library/alloc | |
| parent | 37998ab508d5d9fa0d465d7b535dc673087dda8f (diff) | |
| download | rust-3b9b4e5e3d6b45be6d355f0685eb70d99c3ab50a.tar.gz rust-3b9b4e5e3d6b45be6d355f0685eb70d99c3ab50a.zip | |
reorder attributes to make miri-test-libstd work again
Diffstat (limited to 'library/alloc')
| -rw-r--r-- | library/alloc/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/alloc/src/lib.rs b/library/alloc/src/lib.rs index 59fa91c1066..967ad3a0e69 100644 --- a/library/alloc/src/lib.rs +++ b/library/alloc/src/lib.rs @@ -56,6 +56,11 @@ //! [`Rc`]: rc //! [`RefCell`]: core::cell +// To run alloc tests without x.py without ending up with two copies of alloc, Miri needs to be +// able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>. +// rustc itself never sets the feature, so this line has no affect there. +#![cfg(any(not(feature = "miri-test-libstd"), test, doctest))] +// #![allow(unused_attributes)] #![stable(feature = "alloc", since = "1.36.0")] #![doc( @@ -75,11 +80,6 @@ ))] #![no_std] #![needs_allocator] -// To run alloc tests without x.py without ending up with two copies of alloc, Miri needs to be -// able to "empty" this crate. See <https://github.com/rust-lang/miri-test-libstd/issues/4>. -// rustc itself never sets the feature, so this line has no affect there. -#![cfg(any(not(feature = "miri-test-libstd"), test, doctest))] -// // Lints: #![deny(unsafe_op_in_unsafe_fn)] #![deny(fuzzy_provenance_casts)] |
