You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sfackler opened this issue
Oct 17, 2019
· 5 comments
· Fixed by #149
Assignees
Labels
A-dropArea: #[pinned_drop] and DropC-bugCategory: related to a bug.I-unsoundA soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
Since the #[pinned_drop] attribute injects an unsafe onto the drop fn, code within the drop implementation can perform unsafe operations without an explicit unsafe block.
You could potentially instead generate something like
implPinnedDropforFoo{unsafefndrop(self:Pin<&mutSelf>){fndrop_inner(self:Pin<&mutSelf>){// user code here}drop_inner(self);}}
The text was updated successfully, but these errors were encountered:
A-dropArea: #[pinned_drop] and DropC-bugCategory: related to a bug.I-unsoundA soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
Since the
#[pinned_drop]
attribute injects anunsafe
onto the drop fn, code within the drop implementation can perform unsafe operations without an explicit unsafe block.You could potentially instead generate something like
The text was updated successfully, but these errors were encountered: