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

move async unsafe fn into #![feature(async_unsafe)] #62518

Closed
wants to merge 3 commits into from

Conversation

delan
Copy link
Contributor

@delan delan commented Jul 9, 2019

This is my first PR to the project, so please let me know if anything’s amiss!

r? @Centril

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Centril (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 9, 2019
@Centril
Copy link
Contributor

Centril commented Jul 11, 2019

@delan Thank you for the PR! ❤️

After some discussion, I was convinced not to feature gate this after all (see #62149 (comment)) so I don't think we can merge this PR. I hope this hasn't soured your taste for contributing to rustc and hopefully you got to learn about how to contribute to the compiler.

One thing that is however sorely lacking is tests for async unsafe fn. Would you like to file another PR for that so that we:

  • Check that an async unsafe fn requires unsafe { ... } to be called.
    • Including async unsafe fn implementations...
  • Tangentially also test the behavior of unsafe { async { $stuff } } wrt. allowing unsafe operations in $stuff.

If you would like, there are some other tests needed that we could use some help with. :)

Thanks again for the PR, and sorry about the noise!

@delan
Copy link
Contributor Author

delan commented Jul 11, 2019

After some discussion, I was convinced not to feature gate this after all (see #62149 (comment)) so I don't think we can merge this PR. I hope this hasn't soured your taste for contributing to rustc and hopefully you got to learn about how to contribute to the compiler.

Not at all, these things happen!

One thing that is however sorely lacking is tests for async unsafe fn. Would you like to file another PR for that so that we:

  • Check that an async unsafe fn requires unsafe { ... } to be called.
    • Including async unsafe fn implementations...
  • Tangentially also test the behavior of unsafe { async { $stuff } } wrt. allowing unsafe operations in $stuff.

I’ll see what I can do about those later today.

Thanks again for the PR, and sorry about the noise!

Happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move async unsafe fn to distinct feature gate
3 participants