File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 6
6
#![ allow( unknown_lints) ]
7
7
#![ doc( html_root_url = "https://docs.rs/pin-utils/0.1.0" ) ]
8
8
9
- #[ doc( hidden) ]
10
- pub mod core_reexport {
11
- pub use core:: * ;
12
- }
13
-
14
9
#[ macro_use]
15
10
mod stack_pin;
16
11
#[ macro_use]
17
12
mod projection;
13
+
14
+ // Not public API.
15
+ #[ doc( hidden) ]
16
+ pub mod __private {
17
+ pub use core:: pin:: Pin ;
18
+ }
Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ macro_rules! unsafe_pinned {
45
45
( $f: tt: $t: ty) => {
46
46
#[ allow( unsafe_code) ]
47
47
fn $f<' __a>(
48
- self : $crate:: core_reexport :: pin :: Pin <& ' __a mut Self >,
49
- ) -> $crate:: core_reexport :: pin :: Pin <& ' __a mut $t> {
50
- unsafe { $crate:: core_reexport :: pin :: Pin :: map_unchecked_mut( self , |x| & mut x. $f) }
48
+ self : $crate:: __private :: Pin <& ' __a mut Self >,
49
+ ) -> $crate:: __private :: Pin <& ' __a mut $t> {
50
+ unsafe { $crate:: __private :: Pin :: map_unchecked_mut( self , |x| & mut x. $f) }
51
51
}
52
52
} ;
53
53
}
@@ -93,8 +93,8 @@ macro_rules! unsafe_pinned {
93
93
macro_rules! unsafe_unpinned {
94
94
( $f: tt: $t: ty) => {
95
95
#[ allow( unsafe_code) ]
96
- fn $f<' __a>( self : $crate:: core_reexport :: pin :: Pin <& ' __a mut Self >) -> & ' __a mut $t {
97
- unsafe { & mut $crate:: core_reexport :: pin :: Pin :: get_unchecked_mut( self ) . $f }
96
+ fn $f<' __a>( self : $crate:: __private :: Pin <& ' __a mut Self >) -> & ' __a mut $t {
97
+ unsafe { & mut $crate:: __private :: Pin :: get_unchecked_mut( self ) . $f }
98
98
}
99
99
} ;
100
100
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ macro_rules! pin_mut {
19
19
// ever again.
20
20
#[ allow( unused_mut) ]
21
21
let mut $x = unsafe {
22
- $crate:: core_reexport :: pin :: Pin :: new_unchecked( & mut $x)
22
+ $crate:: __private :: Pin :: new_unchecked( & mut $x)
23
23
} ;
24
24
) * }
25
25
}
You can’t perform that action at this time.
0 commit comments