@@ -56,9 +56,9 @@ use crate::ptr;
5656/// working with [pinned] data, where reusing the memory without calling the destructor could lead
5757/// to Undefined Behaviour.
5858///
59- /// [`mem::zeroed`]: fn. zeroed.html
60- /// [`MaybeUninit<T>`]: union. MaybeUninit.html
61- /// [pinned]: ../ pin/index.html
59+ /// [`mem::zeroed`]: crate::mem:: zeroed
60+ /// [`MaybeUninit<T>`]: crate::mem:: MaybeUninit
61+ /// [pinned]: crate:: pin
6262#[ stable( feature = "manually_drop" , since = "1.20.0" ) ]
6363#[ lang = "manually_drop" ]
6464#[ derive( Copy , Clone , Debug , Default , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
@@ -116,8 +116,6 @@ impl<T> ManuallyDrop<T> {
116116 /// leaving the state of this container unchanged.
117117 /// It is your responsibility to ensure that this `ManuallyDrop` is not used again.
118118 ///
119- /// [`ManuallyDrop::drop`]: #method.drop
120- /// [`ManuallyDrop::into_inner`]: #method.into_inner
121119 #[ must_use = "if you don't need the value, you can use `ManuallyDrop::drop` instead" ]
122120 #[ stable( feature = "manually_drop_take" , since = "1.42.0" ) ]
123121 #[ inline]
@@ -148,9 +146,7 @@ impl<T: ?Sized> ManuallyDrop<T> {
148146 /// This is normally prevented by the type system, but users of `ManuallyDrop` must
149147 /// uphold those guarantees without assistance from the compiler.
150148 ///
151- /// [`ManuallyDrop::into_inner`]: #method.into_inner
152- /// [`ptr::drop_in_place`]: ../ptr/fn.drop_in_place.html
153- /// [pinned]: ../pin/index.html
149+ /// [pinned]: crate::pin
154150 #[ stable( feature = "manually_drop" , since = "1.20.0" ) ]
155151 #[ inline]
156152 pub unsafe fn drop ( slot : & mut ManuallyDrop < T > ) {
0 commit comments