File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 14
14
//
15
15
// Remove once we have `proc_macro2` in the kernel.
16
16
#![ allow( clippy:: useless_conversion) ]
17
+ // Documentation is done in the pin-init crate instead.
18
+ #![ allow( missing_docs) ]
17
19
18
20
use proc_macro:: TokenStream ;
19
21
@@ -30,19 +32,16 @@ mod pin_data;
30
32
mod pinned_drop;
31
33
mod zeroable;
32
34
33
- #[ allow( missing_docs) ]
34
35
#[ proc_macro_attribute]
35
36
pub fn pin_data ( inner : TokenStream , item : TokenStream ) -> TokenStream {
36
37
pin_data:: pin_data ( inner. into ( ) , item. into ( ) ) . into ( )
37
38
}
38
39
39
- #[ allow( missing_docs) ]
40
40
#[ proc_macro_attribute]
41
41
pub fn pinned_drop ( args : TokenStream , input : TokenStream ) -> TokenStream {
42
42
pinned_drop:: pinned_drop ( args. into ( ) , input. into ( ) ) . into ( )
43
43
}
44
44
45
- #[ allow( missing_docs) ]
46
45
#[ proc_macro_derive( Zeroable ) ]
47
46
pub fn derive_zeroable ( input : TokenStream ) -> TokenStream {
48
47
zeroable:: derive ( input. into ( ) ) . into ( )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use super::*;
14
14
///
15
15
/// [nomicon]: https://doc.rust-lang.org/nomicon/subtyping.html
16
16
/// [this table]: https://doc.rust-lang.org/nomicon/phantom-data.html#table-of-phantomdata-patterns
17
- pub ( super ) type Invariant < T > = PhantomData < fn ( * mut T ) -> * mut T > ;
17
+ pub ( crate ) type Invariant < T > = PhantomData < fn ( * mut T ) -> * mut T > ;
18
18
19
19
/// Module-internal type implementing `PinInit` and `Init`.
20
20
///
Original file line number Diff line number Diff line change @@ -349,8 +349,6 @@ pub use alloc::InPlaceInit;
349
349
/// }
350
350
/// }
351
351
/// ```
352
- ///
353
- /// [`pin_init!`]: crate::pin_init
354
352
pub use :: pin_init_internal:: pin_data;
355
353
356
354
/// Used to implement `PinnedDrop` safely.
You can’t perform that action at this time.
0 commit comments