Repository navigation
Conversation
|
Some changes occurred to the intrinsics. Make sure the CTFE / Miri interpreter cc @rust-lang/miri, @RalfJung, @oli-obk, @lcnr
cc @rust-lang/wg-const-eval |
|
r? @fee1-dead rustbot has assigned @fee1-dead. Use Why was this reviewer chosen?The reviewer was selected based on:
|
abort_immediate as abort_ungraceful
abort_immediate as abort_ungracefulabort_immediate as crash
404c179 to
24caf1e
Compare
|
In terms of naming,
(Also why are there two PRs? It's confusing.^^ Is this the right one for discussion?) |
|
For libs there are a couple questions, mostly name. Personally I'm most okay with I am going to propose FCP here but expect there will be naming discussion at the meeting. So I suppose only check your box if you're okay with any name, otherwise hold off until Tuesday. For lang, this is a new const intrinsic that does something slightly novel. It's right on the line of what's been delegated so I think having your FCP doesn't hurt, but it is effectively a less nice @rfcbot merge libs,lang |
|
@tgross35 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! cc @rust-lang/lang-advisors: FCP proposed for lang, please feel free to register concerns. |
|
I actually really like the name "crash". It's short and descriptive, particularly as opposed to "abort". |
Agreed that I think I'm going to prepare another docs update PR that can include that clarification, but am going to hold off until a name is decided.
It's always nice for the stabilization PR to be just stabilization so there's a little more buffer time after any other changes. Plus stabilization needs to wait on FCP while other changes don't. But yeah, this PR serves as a central place to discuss both. |
|
I like the name Naming it with any variation of |
|
r? libs |
|
I think |
|
Thanks for thinking of lang. Agreed this is nominally a new intrinsic. From a lang side: @rfcbot reviewed As input to the libs decision on the name, I think that |
|
Lang hat: zero concerns here. The extremely similar @rfcbot reviewed Personally: I like |
|
The original implementation used |
|
We should at least look at which flavors of aborting/crashing we have/may have in the future. And if the names distinguish them well enough
|
|
As discussed in the meeting: basically, we'd like to ensure a few things before stabilisation, namely:
Otherwise, people seemed pretty amenable to the new name. |
This comment has been minimized.
This comment has been minimized.
|
No concerns from me on the name or the new intrinsic. @rfcbot reviewed |
|
@rfcbot reviewed |
|
🔔 This is now entering its final comment period, as per the review above. 🔔 |
24caf1e to
2f3184b
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
The job Click to see the possible cause of the failure (guessed by this bot)Important For more information how to resolve CI failures of this job, visit this link. |
…=jhpratt core: Rename `abort_immediate` to `crash` See rust-lang#164731 for context. Tracking issue: rust-lang#154601
View all comments
Stabilize the following, including
const:The rename is happening in #164730 (this is stacked on top).
There are three considerations for libs, which are the unresolved questions on the tracking issue:
core::process::abort()which calls tolibc::abort()on platforms with an OS? I think yes: having effectively a single-instruction way to terminate is useful for performance reasons and as a fallback, e.g. running on an OS but without linking alibc.abort_immediateseems lukewarm based on tracking issue discussion. I'm proposing we go with crashcrashbecause it appears to be one of the more unobjectionable options there.core::processor somewhere else? There isn't really a process without an OS. But for consistency withabort, I think it is fine.Lang is involved because this is stabilizing a new const intrinsic that can't really be replicated with existing stable features, though
panic!()is close.Closes: #154601 (tracking issue)