We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b68fc18 commit 46a6831Copy full SHA for 46a6831
src/libstd/future.rs
@@ -95,10 +95,10 @@ where
95
});
96
let _reset_waker = SetOnDrop(waker_ptr);
97
98
- let mut waker_ptr = waker_ptr.expect(
+ let waker_ptr = waker_ptr.expect(
99
"TLS LocalWaker not set. This is a rustc bug. \
100
Please file an issue on https://github.com/rust-lang/rust.");
101
- unsafe { f(waker_ptr.as_mut()) }
+ unsafe { f(waker_ptr.as_ref()) }
102
}
103
104
#[unstable(feature = "gen_future", issue = "50547")]
0 commit comments