-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
#[inline] affects whether consteval happens #144460
Copy link
Copy link
Open
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I tried this code:
I expected
#[inline]to not affect whether the code compiles or not. However, the code compiles with#[inline], and fails to compile without#[inline]. I'm not sure if this is a bug or not.Discovered in #144363
@rustbot labels +A-const-eval
Meta
Reproducible on the playground with stable rust 1.88.0