Remove core_intrinsics feature

Stable versions of these functions now exist under core::ptr, so use
those.
This commit is contained in:
Ian Douglas Scott
2018-01-06 22:38:37 -08:00
parent 7c805d2a28
commit 3fc22e2e4c
2 changed files with 3 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
use core::intrinsics::{volatile_load, volatile_store};
use core::ptr::{read_volatile, write_volatile};
use core::mem::uninitialized;
use core::ops::{BitAnd, BitOr, Not};
@@ -22,10 +22,10 @@ impl<T> Io for Mmio<T> where T: Copy + PartialEq + BitAnd<Output = T> + BitOr<Ou
type Value = T;
fn read(&self) -> T {
unsafe { volatile_load(&self.value) }
unsafe { read_volatile(&self.value) }
}
fn write(&mut self, value: T) {
unsafe { volatile_store(&mut self.value, value) };
unsafe { write_volatile(&mut self.value, value) };
}
}

View File

@@ -1,7 +1,6 @@
#![deny(warnings)]
#![feature(asm)]
#![feature(const_fn)]
#![feature(core_intrinsics)]
#![no_std]
pub use self::arch::*;