aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2019-05-21 12:32:21 +0000
committerGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2019-05-21 12:32:21 +0000
commiteb528ef921c1d30d03b533b788a3af302bffb1f9 (patch)
treea413815ad51321d88521daad79b818805f40b2b9 /src
parent6acb156482f8dfeba6348f05ac231727906c138d (diff)
parentfafc94ccfba4447c9eba7457a977d67a74507436 (diff)
downloadrtic-eb528ef921c1d30d03b533b788a3af302bffb1f9.tar.gz
rtic-eb528ef921c1d30d03b533b788a3af302bffb1f9.tar.zst
rtic-eb528ef921c1d30d03b533b788a3af302bffb1f9.zip
Merge #192
192: removes the maybe_uninit feature gate r=japaric a=japaric and stop newtyping `core::mem::MaybeUninit` this also fixes CI on nightly Co-authored-by: Jorge Aparicio <jorge@japaric.io>
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]