about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/tests/lib.rs2
-rw-r--r--library/core/tests/ptr.rs5
2 files changed, 5 insertions, 2 deletions
diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs
index f5035c9f16f..b82cfe86290 100644
--- a/library/core/tests/lib.rs
+++ b/library/core/tests/lib.rs
@@ -68,7 +68,7 @@
 #![feature(option_result_unwrap_unchecked)]
 #![feature(option_unwrap_none)]
 #![feature(peekable_peek_mut)]
-#![feature(ptr_metadata)]
+#![cfg_attr(not(bootstrap), feature(ptr_metadata))]
 #![feature(once_cell)]
 #![feature(unsafe_block_in_unsafe_fn)]
 #![feature(unsized_tuple_coercion)]
diff --git a/library/core/tests/ptr.rs b/library/core/tests/ptr.rs
index d594af991bf..1cdcb8c9767 100644
--- a/library/core/tests/ptr.rs
+++ b/library/core/tests/ptr.rs
@@ -1,5 +1,8 @@
 use core::cell::RefCell;
-use core::ptr::{self, *};
+#[cfg(not(bootstrap))]
+use core::ptr;
+use core::ptr::*;
+#[cfg(not(bootstrap))]
 use std::fmt::{Debug, Display};
 
 #[test]