Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compat: use a CurrentRef waker in 01 compat #1262

Merged
merged 1 commit into from
Oct 1, 2018

Conversation

seanmonstar
Copy link
Contributor

Just to poll a Future01, it isn't yet necessary to call
task01::current(), nor store it in an Arc::new. All that is needed
is a "reference", and if someone calls waker().clone(), then we can
do the allocations.

Just to poll a `Future01`, it isn't yet necessary to call
`task01::current()`, nor store it in an `Arc::new`. All that is needed
is a "reference", and if someone calls `waker().clone()`, *then* we can
do the allocations.
@seanmonstar
Copy link
Contributor Author

CI failure seems unrelated to this PR.

@Nemo157
Copy link
Member

Nemo157 commented Sep 18, 2018

CI is definitely unrelated, doc failure is the buggy rustdoc link detection (which I will open a pr to disable soon) and benchmarks are caused by rust-lang/rust#54116, left a comment there to try and sort that out.

Copy link
Member

@Nemo157 Nemo157 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@seanmonstar
Copy link
Contributor Author

I've tried restarting those CI jobs, but they still fail. Seems this can't be merged with them failing...

@Nemo157
Copy link
Member

Nemo157 commented Sep 28, 2018

Admins can merge even with failing ci (and as far as I know only the admins have merge rights here anyway).

@aturon aturon merged commit 12e67a0 into rust-lang:master Oct 1, 2018
@aturon
Copy link
Member

aturon commented Oct 1, 2018

Merged, sorry for the delay (and feel free to ping if things are getting stuck.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants