File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 66#![ allow( unknown_lints) ]
77#![ doc( html_root_url = "https://docs.rs/pin-utils/0.1.0" ) ]
88
9+ #[ doc( hidden) ]
10+ pub mod core_reexport {
11+ pub use core:: * ;
12+ }
13+
914#[ macro_use]
1015mod stack_pin;
1116#[ macro_use]
Original file line number Diff line number Diff line change @@ -90,10 +90,10 @@ macro_rules! unsafe_unpinned {
9090 ( $f: tt: $t: ty) => (
9191 #[ allow( unsafe_code) ]
9292 fn $f<' __a>(
93- self : :: core :: pin:: Pin <& ' __a mut Self >
93+ self : $crate :: core_reexport :: pin:: Pin <& ' __a mut Self >
9494 ) -> & ' __a mut $t {
9595 unsafe {
96- & mut :: core :: pin:: Pin :: get_unchecked_mut( self ) . $f
96+ & mut $crate :: core_reexport :: pin:: Pin :: get_unchecked_mut( self ) . $f
9797 }
9898 }
9999 )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ macro_rules! pin_mut {
1919 // ever again.
2020 #[ allow( unused_mut) ]
2121 let mut $x = unsafe {
22- :: core :: pin:: Pin :: new_unchecked( & mut $x)
22+ $crate :: core_reexport :: pin:: Pin :: new_unchecked( & mut $x)
2323 } ;
2424 ) * }
2525}
You can’t perform that action at this time.
0 commit comments