@@ -56,9 +56,9 @@ use crate::ptr;
56
56
/// working with [pinned] data, where reusing the memory without calling the destructor could lead
57
57
/// to Undefined Behaviour.
58
58
///
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
62
62
#[ stable( feature = "manually_drop" , since = "1.20.0" ) ]
63
63
#[ lang = "manually_drop" ]
64
64
#[ derive( Copy , Clone , Debug , Default , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
@@ -116,8 +116,6 @@ impl<T> ManuallyDrop<T> {
116
116
/// leaving the state of this container unchanged.
117
117
/// It is your responsibility to ensure that this `ManuallyDrop` is not used again.
118
118
///
119
- /// [`ManuallyDrop::drop`]: #method.drop
120
- /// [`ManuallyDrop::into_inner`]: #method.into_inner
121
119
#[ must_use = "if you don't need the value, you can use `ManuallyDrop::drop` instead" ]
122
120
#[ stable( feature = "manually_drop_take" , since = "1.42.0" ) ]
123
121
#[ inline]
@@ -148,9 +146,7 @@ impl<T: ?Sized> ManuallyDrop<T> {
148
146
/// This is normally prevented by the type system, but users of `ManuallyDrop` must
149
147
/// uphold those guarantees without assistance from the compiler.
150
148
///
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
154
150
#[ stable( feature = "manually_drop" , since = "1.20.0" ) ]
155
151
#[ inline]
156
152
pub unsafe fn drop ( slot : & mut ManuallyDrop < T > ) {
0 commit comments