@@ -426,21 +426,17 @@ impl<T: ?Sized, const ID: u64> Work<T, ID> {
426
426
/// The [`OFFSET`] constant must be the offset of a field in `Self` of type [`Work<T, ID>`]. The
427
427
/// methods on this trait must have exactly the behavior that the definitions given below have.
428
428
///
429
- /// [`Work<T, ID>`]: Work
430
429
/// [`impl_has_work!`]: crate::impl_has_work
431
430
/// [`OFFSET`]: HasWork::OFFSET
432
431
pub unsafe trait HasWork < T , const ID : u64 = 0 > {
433
432
/// The offset of the [`Work<T, ID>`] field.
434
- ///
435
- /// [`Work<T, ID>`]: Work
436
433
const OFFSET : usize ;
437
434
438
435
/// Returns the offset of the [`Work<T, ID>`] field.
439
436
///
440
437
/// This method exists because the [`OFFSET`] constant cannot be accessed if the type is not
441
438
/// [`Sized`].
442
439
///
443
- /// [`Work<T, ID>`]: Work
444
440
/// [`OFFSET`]: HasWork::OFFSET
445
441
#[ inline]
446
442
fn get_work_offset ( & self ) -> usize {
@@ -452,8 +448,6 @@ pub unsafe trait HasWork<T, const ID: u64 = 0> {
452
448
/// # Safety
453
449
///
454
450
/// The provided pointer must point at a valid struct of type `Self`.
455
- ///
456
- /// [`Work<T, ID>`]: Work
457
451
#[ inline]
458
452
unsafe fn raw_get_work ( ptr : * mut Self ) -> * mut Work < T , ID > {
459
453
// SAFETY: The caller promises that the pointer is valid.
@@ -465,8 +459,6 @@ pub unsafe trait HasWork<T, const ID: u64 = 0> {
465
459
/// # Safety
466
460
///
467
461
/// The pointer must point at a [`Work<T, ID>`] field in a struct of type `Self`.
468
- ///
469
- /// [`Work<T, ID>`]: Work
470
462
#[ inline]
471
463
unsafe fn work_container_of ( ptr : * mut Work < T , ID > ) -> * mut Self
472
464
where
@@ -495,8 +487,6 @@ pub unsafe trait HasWork<T, const ID: u64 = 0> {
495
487
/// impl HasWork<MyStruct, 17> for MyStruct { self.work_field }
496
488
/// }
497
489
/// ```
498
- ///
499
- /// [`HasWork<T, ID>`]: HasWork
500
490
#[ macro_export]
501
491
macro_rules! impl_has_work {
502
492
( $( impl $( <$( $implarg: ident) ,* >) ?
0 commit comments