Skip to content

Commit 16c2f38

Browse files
committed
[liballoc] Fix unused import warning in stage0
1 parent a33b808 commit 16c2f38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/liballoc/rc.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ use core::cmp::{PartialEq, PartialOrd, Eq, Ord, Ordering};
159159
use core::default::Default;
160160
use core::fmt;
161161
use core::hash::{Hasher, Hash};
162-
use core::marker::{self, Sized};
162+
use core::marker;
163+
#[cfg(not(stage0))]
164+
use core::marker::Sized;
163165
use core::mem::{self, min_align_of, size_of, forget};
164166
use core::nonzero::NonZero;
165167
use core::ops::{Deref, Drop};

0 commit comments

Comments
 (0)