Stabilize default_alloc_error_handler by Amanieu · Pull Request #102318 · rust-l...
source link: https://github.com/rust-lang/rust/pull/102318
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
Member
Amanieu commented Sep 26, 2022
Tracking issue: #66741
This turns feature(default_alloc_error_handler)
on by default, which causes the compiler to automatically generate a default OOM handler which panics if #[alloc_error_handler]
is not provided.
The FCP completed over 2 years ago but the stabilization was blocked due to an issue with unwinding. This was fixed by #88098 so stabilization can be unblocked.
Closes #66741
added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label
Collaborator
rust-highfive commented Sep 26, 2022
r? @lcnr (rust-highfive has picked a reviewer for you, use r? to override) |
Contributor
lcnr commented Sep 26, 2022
considering that the FCP was 2 years ago, i would expect us to go through another FCP which explains the reason why stabilization was blocked. Won't block this without an FCP, but i definitely want someone to look at this who's a bit more knowledgeable about this than me r? compiler |
Contributor
bjorn3 commented Sep 26, 2022
When using this with cg_clif I get:
It seems that the current implementation depends on
|
Contributor
Ericson2314 commented Sep 26, 2022
I guess this is fine, but for people using alloc without global error handling at all (the current unstable |
Contributor
oli-obk commented Sep 27, 2022
We should probably have a test that uses this in a way we expect it to be used without requiring other feature gates. The tests touched by this PR all use other feature gates. |
added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
This comment has been hidden.
added the A-translation Area: Translation infrastructure, and migrating existing diagnostics to SessionDiagnostic label
Member
Author
Amanieu commented Nov 3, 2022
@rustbot ready |
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
labels
Contributor
CryZe commented Nov 30, 2022
Same thing for WASM where you don't use libc / eh_personality usually. |
Member
Author
Amanieu commented Nov 30, 2022
I've removed most of the unstable features from the tests. The only remaining features are:
|
Contributor
oli-obk commented Dec 5, 2022
Stabilization report for @rust-lang/lang More details (Guide/Reference level explanations) can be found in the main post of the tracking issue. There are no outstanding issues with this feature. The only alternative was to stabilize the Motivation (verbatim from tracking issue)As of Rust 1.36, specifying an allocation error handler is the only requirement for using the Removing this requirement by having a default behavior would allow:
|
Member
joshtriplett commented Dec 6, 2022
We talked about this in today's @rust-lang/lang meeting. We're going to confirm consensus via a quick FCP, since it's been 2 years. @rfcbot merge |
rfcbot commented Dec 6, 2022 •
Team member @joshtriplett 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. |
added proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off. disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it.
labels
Contributor
nikomatsakis commented Dec 6, 2022
@rfcbot fcp reviewed |
added final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised.
and removed proposed-final-comment-period Proposed to merge/close by relevant subteam, see T-<team> label. Will enter FCP once signed off.
labels
rfcbot commented Dec 6, 2022
This is now entering its final comment period, as per the review above. |
removed the I-lang-nominated Indicates that an issue has been nominated for discussion during a lang team meeting. label
added finished-final-comment-period The final comment period is finished for this PR / Issue. to-announce Announce this issue on triage meeting
and removed final-comment-period In the final comment period and will be merged soon unless new substantive objections are raised.
labels
rfcbot commented Dec 16, 2022
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. |
Contributor
oli-obk commented Dec 16, 2022
Contributor
bors commented Dec 16, 2022
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-team Status: Awaiting decision from the relevant subteam (see the T-<team> label).
labels
Contributor
bors commented Dec 16, 2022
Contributor
bors commented Dec 17, 2022
Test successful - checks-actions |
Collaborator
rust-timer commented Dec 17, 2022
Finished benchmarking commit (bbb9cfb): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results CyclesResults |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
No reviews
None yet
Successfully merging this pull request may close these issues.
Tracking issue for handle_alloc_error
defaulting to panic (for no_std + liballoc)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK