aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2019-05-21 14:18:43 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2019-05-21 14:18:43 +0200
commitfafc94ccfba4447c9eba7457a977d67a74507436 (patch)
treea413815ad51321d88521daad79b818805f40b2b9 /src
parent6acb156482f8dfeba6348f05ac231727906c138d (diff)
downloadrtic-fafc94ccfba4447c9eba7457a977d67a74507436.tar.gz
rtic-fafc94ccfba4447c9eba7457a977d67a74507436.tar.zst
rtic-fafc94ccfba4447c9eba7457a977d67a74507436.zip
removes the maybe_uninit feature gate
and stop newtyping `core::mem::MaybeUninit`
Diffstat (limited to 'src')
-rw-r--r--src/export.rs30
-rw-r--r--src/lib.rs1
2 files changed, 0 insertions, 31 deletions
diff --git a/src/export.rs b/src/export.rs
index 93a92fcf..ee4df52a 100644
--- a/src/export.rs
+++ b/src/export.rs
@@ -68,36 +68,6 @@ impl Priority {
}
}
-// We newtype `core::mem::MaybeUninit` so the end-user doesn't need `#![feature(maybe_uninit)]` in
-// their code
-pub struct MaybeUninit<T> {
- inner: core::mem::MaybeUninit<T>,
-}
-
-impl<T> MaybeUninit<T> {
- pub const fn uninit() -> Self {
- MaybeUninit {
- inner: core::mem::MaybeUninit::uninit(),
- }
- }
-
- pub fn as_ptr(&self) -> *const T {
- self.inner.as_ptr()
- }
-
- pub fn as_mut_ptr(&mut self) -> *mut T {
- self.inner.as_mut_ptr()
- }
-
- pub unsafe fn read(&self) -> T {
- self.inner.read()
- }
-
- pub fn write(&mut self, value: T) -> &mut T {
- self.inner.write(value)
- }
-}
-
#[inline(always)]
pub fn assert_send<T>()
where
diff --git a/src/lib.rs b/src/lib.rs
index acd8d433..1fe88c47 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -43,7 +43,6 @@
//! language feature to reduce static memory usage, runtime overhead and initialization overhead.
//! This feature requires a nightly compiler and may stop working at any time!
-#![feature(maybe_uninit)]
#![deny(missing_docs)]
#![deny(warnings)]
#![no_std]