add miri-test-libstd support to libstd

This commit is contained in:
Ralf Jung
2022-08-03 22:48:12 -04:00
parent 8064a49508
commit ac66baad1a
2 changed files with 9 additions and 0 deletions

View File

@@ -60,6 +60,7 @@
// 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(