Skip to content

Commit e419168

Browse files
Clarify comment
1 parent 50b9d77 commit e419168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/future/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ where
5858
impl<T: Generator<ResumeTy, Yield = ()>> Future for GenFuture<T> {
5959
type Output = T::Return;
6060
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
61+
// Safety: Safe because we're !Unpin + !Drop, and this is just a field projection.
6262
let gen = unsafe { Pin::map_unchecked_mut(self, |s| &mut s.0) };
6363

6464
// Resume the generator, turning the `&mut Context` into a `NonNull` raw pointer. The

0 commit comments

Comments
 (0)