Enforce min_const_fn
by default in staged_api
with opt-out
#64285
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-const-eval
Area: Constant evaluation (MIR interpretation)
A-stability
Area: `#[stable]`, `#[unstable]` etc.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
P-medium
Medium priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
We want to switch to a scheme where everything inside the standard library requires
min_const_fn
by default. If an additional#[rustc_not_min_const_fn]
is present, then the function will be uncallable from anymin_const_fn
.It's also important to note that a function
#[rustc_const_unstable(feature "foo")] const fn bar() {}
without#[rustc_not_min_const_fn]
should a) enforce that that the function ismin_const_fn
even without the feature gate active, b) not be callable asmin_const_fn
without the the feature gate active.Relevant code exists in:
Context: Centril@93ad760#r34994115 (also see my branch master...Centril:stabilize-vec-new-const)
Conversation replayed (keep-safe):
@oli-obk:
@Centril:
@oli-obk:
The text was updated successfully, but these errors were encountered: