Skip to content

Commit 8b2e9b1

Browse files
committed
Remove some types from the prelude
1 parent a222427 commit 8b2e9b1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

library/core/src/prelude/common.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ pub use crate::result::Result::{self, Err, Ok};
4343

4444
#[stable(feature = "core_prelude_extra", since = "CURRENT_RUSTC_VERSION")]
4545
#[doc(no_inline)]
46-
pub use crate::cell::{Cell, LazyCell, OnceCell, RefCell, SyncUnsafeCell, UnsafeCell};
46+
pub use crate::cell::{LazyCell, OnceCell, RefCell, SyncUnsafeCell, UnsafeCell};
4747

4848
#[stable(feature = "core_prelude_extra", since = "CURRENT_RUSTC_VERSION")]
4949
#[doc(no_inline)]
5050
pub use crate::ffi::{
5151
c_char, c_double, c_float, c_int, c_long, c_longlong, c_ptrdiff_t, c_schar, c_short, c_size_t,
52-
c_ssize_t, c_str, c_uchar, c_uint, c_ulong, c_ulonglong, c_ushort, c_void, CStr,
52+
c_ssize_t, c_uchar, c_uint, c_ulong, c_ulonglong, c_ushort, c_void, CStr,
5353
};
5454

5555
#[stable(feature = "core_prelude_extra", since = "CURRENT_RUSTC_VERSION")]
@@ -94,10 +94,6 @@ pub use crate::sync::atomic::{
9494
AtomicU32, AtomicU64, AtomicU8, AtomicUsize,
9595
};
9696

97-
#[stable(feature = "core_prelude_extra", since = "CURRENT_RUSTC_VERSION")]
98-
#[doc(no_inline)]
99-
pub use crate::time::Duration;
100-
10197
#[stable(feature = "core_prelude_extra", since = "CURRENT_RUSTC_VERSION")]
10298
#[doc(no_inline)]
10399
pub use crate::ops::ControlFlow;

0 commit comments

Comments
 (0)