Skip to content

mark is_val_statically_known intrinsic as stably const-callable#132449

Merged
bors merged 1 commit intorust-lang:masterfrom
RalfJung:is_val_statically_known
Nov 17, 2024
Merged

mark is_val_statically_known intrinsic as stably const-callable#132449
bors merged 1 commit intorust-lang:masterfrom
RalfJung:is_val_statically_known

Conversation

@RalfJung
Copy link
Copy Markdown
Member

@RalfJung RalfJung commented Nov 1, 2024

The intrinsic doesn't actually "do" anything in terms of language semantics, and we are already using it in stable const fn. So let's just properly mark it as stably const-callable to avoid needing rustc_allow_const_fn_unstable (and thus reducing noise and keeping the remaining rustc_allow_const_fn_unstable as a more clear signal).

Cc @rust-lang/lang usually you have to approve exposing intrinsics in const, but this intrinsic is basically just a compiler implementation detail. So FCP doesn't seem necessary.
Cc @rust-lang/wg-const-eval

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

disposition-merge This issue / PR is in PFCP or FCP with a disposition to merge it. finished-final-comment-period The final comment period is finished for this PR / Issue. I-lang-easy-decision Issue: The decision needed by the team is conjectured to be easy; this does not imply nomination S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-lang Relevant to the language team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants