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
7dd164b to
404c179
Compare
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 |
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)