Skip to content

Commit 642486c

Browse files
committed
Fix libcore unit tests in stage 0
1 parent 3ea7f15 commit 642486c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: library/core/tests/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
#![feature(option_result_unwrap_unchecked)]
6969
#![feature(option_unwrap_none)]
7070
#![feature(peekable_peek_mut)]
71-
#![feature(ptr_metadata)]
71+
#![cfg_attr(not(bootstrap), feature(ptr_metadata))]
7272
#![feature(once_cell)]
7373
#![feature(unsafe_block_in_unsafe_fn)]
7474
#![feature(unsized_tuple_coercion)]

Diff for: library/core/tests/ptr.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
use core::cell::RefCell;
2-
use core::ptr::{self, *};
2+
#[cfg(not(bootstrap))]
3+
use core::ptr;
4+
use core::ptr::*;
5+
#[cfg(not(bootstrap))]
36
use std::fmt::{Debug, Display};
47

58
#[test]

0 commit comments

Comments
 (0)