We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50b9d77 commit e419168Copy full SHA for e419168
src/libcore/future/mod.rs
@@ -58,7 +58,7 @@ where
58
impl<T: Generator<ResumeTy, Yield = ()>> Future for GenFuture<T> {
59
type Output = T::Return;
60
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
61
- // Safety: Safe because we're !Unpin + !Drop mapping to a ?Unpin value
+ // Safety: Safe because we're !Unpin + !Drop, and this is just a field projection.
62
let gen = unsafe { Pin::map_unchecked_mut(self, |s| &mut s.0) };
63
64
// Resume the generator, turning the `&mut Context` into a `NonNull` raw pointer. The
0 commit comments