File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -628,7 +628,7 @@ where
628
628
/// ```rust
629
629
/// # use kernel::sync::Mutex;
630
630
/// use kernel::macros::pinned_drop;
631
- /// #[pin_project]
631
+ /// #[pin_project(PinnedDrop) ]
632
632
/// struct Foo {
633
633
/// #[pin]
634
634
/// mtx: Mutex<usize>,
Original file line number Diff line number Diff line change @@ -288,6 +288,13 @@ macro_rules! pin_project {
288
288
impl <$( $impl_generics) * > MustNotImplDrop for $name<$( $ty_generics) * >
289
289
where $( $whr) *
290
290
{ }
291
+ #[ allow( non_camel_case_types) ]
292
+ trait UselessPinnedDropImpl_you_need_to_specify_PinnedDrop { }
293
+ impl <T : $crate:: init:: PinnedDrop > UselessPinnedDropImpl_you_need_to_specify_PinnedDrop for T { }
294
+ impl <$( $impl_generics) * > UselessPinnedDropImpl_you_need_to_specify_PinnedDrop for $name<$( $ty_generics) * >
295
+ where
296
+ $( $whr) *
297
+ { }
291
298
} ;
292
299
( drop_prevention:
293
300
@name( $name: ident) ,
You can’t perform that action at this time.
0 commit comments