-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Implement Default for AssertUnwindSafe #95949
Conversation
Trait impls are still insta-stable yeah...?
Thank you for submitting a new PR for the library teams! If this PR contains a stabilization of a library feature that has not already completed FCP in its tracking issue, introduces new or changes existing unstable library APIs, or changes our public documentation in ways that create new stability guarantees then please comment with |
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @scottmcm (or someone else) soon. Please see the contribution instructions for more information. |
r? rust-lang/libs-api @rustbot label +T-libs-api |
Thanks for your PR. Do you have an example or use case for this? When is it useful for AssertUnwindSafe to implement Default? |
We have this "beauty": https://docs.rs/hexchat-unsafe-plugin/1.0.0/src/hexchat_unsafe_plugin/lib.rs.html#1143 (it is a bit ugly, but anyway) Altho it was pretty easy to work around it: https://docs.rs/hexchat-unsafe-plugin/1.0.0/src/hexchat_unsafe_plugin/lib.rs.html#1361 (We put the Edit: We do believe it would help with clarity to use |
@rfcbot merge |
Team member @m-ou-se has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
@bors r+ rollup |
📌 Commit 8d5a496 has been approved by |
Implement Default for AssertUnwindSafe Trait impls are still insta-stable yeah...?
Implement Default for AssertUnwindSafe Trait impls are still insta-stable yeah...?
…laumeGomez Rollup of 8 pull requests Successful merges: - rust-lang#94022 (Clarify that `Cow::into_owned` returns owned data) - rust-lang#94703 (Fix codegen bug in "ptx-kernel" abi related to arg passing) - rust-lang#95949 (Implement Default for AssertUnwindSafe) - rust-lang#96361 (Switch JS code to ES6) - rust-lang#96372 (Suggest calling method on nested field when struct is missing method) - rust-lang#96386 (simplify `describe_field` func in borrowck's diagnostics part) - rust-lang#96400 (Correct documentation for `Rvalue::ShallowInitBox`) - rust-lang#96415 (Remove references to git.io) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This was probably a perf regression (marking from the upstream PR which actually merged this). Rollup of 8 pull requests #96428
Looks likely to be related to the new |
Diesel does throw trait resolution into overdrive... but we're surprised impl Default for AssertUnwindSafe out of all things turns out to be relevant here o.o wonder how that happens. |
Trait impls are still insta-stable yeah...?