chore(lib): core lib reexport

This commit is contained in:
hyyking
2019-11-10 00:07:25 +01:00
committed by Taylor Cramer
parent 5b11d88513
commit 5f66b0ea37
3 changed files with 8 additions and 3 deletions
+5
View File
@@ -6,6 +6,11 @@
#![allow(unknown_lints)]
#![doc(html_root_url = "https://docs.rs/pin-utils/0.1.0")]
#[doc(hidden)]
pub mod core_reexport {
pub use core::*;
}
#[macro_use]
mod stack_pin;
#[macro_use]
+2 -2
View File
@@ -90,10 +90,10 @@ macro_rules! unsafe_unpinned {
($f:tt: $t:ty) => (
#[allow(unsafe_code)]
fn $f<'__a>(
self: ::core::pin::Pin<&'__a mut Self>
self: $crate::core_reexport::pin::Pin<&'__a mut Self>
) -> &'__a mut $t {
unsafe {
&mut ::core::pin::Pin::get_unchecked_mut(self).$f
&mut $crate::core_reexport::pin::Pin::get_unchecked_mut(self).$f
}
}
)
+1 -1
View File
@@ -19,7 +19,7 @@ macro_rules! pin_mut {
// ever again.
#[allow(unused_mut)]
let mut $x = unsafe {
::core::pin::Pin::new_unchecked(&mut $x)
$crate::core_reexport::pin::Pin::new_unchecked(&mut $x)
};
)* }
}