Registry Mirror
Skip to content

Conversation

@delan

@delan delan commented Jul 9, 2019

Copy link
Copy Markdown
Contributor

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

r? @Centril

@rust-highfive

Copy link
Copy Markdown
Contributor

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
Comment thread src/test/ui/async-await/async-await.rs Resolved
@Centril

Centril commented Jul 11, 2019

Copy link
Copy Markdown
Contributor

@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

delan commented Jul 11, 2019 •

Copy link
Copy Markdown
Contributor Author

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