-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Variables with rustc_layout_scalar_valid_range are not assumed to be in their range #82224
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-layoutArea: Memory layout of typesArea: Memory layout of typesA-mir-optArea: MIR optimizationsArea: MIR optimizationsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-layoutArea: Memory layout of typesArea: Memory layout of typesA-mir-optArea: MIR optimizationsArea: MIR optimizationsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.I-slowIssue: Problems and improvements with respect to performance of generated code.Issue: Problems and improvements with respect to performance of generated code.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I have noticed that for example
NonZerointegers are not assumed to be non-zero.(it also affects division)
Manually adding
intrinsics::assumefixes that issue, but this cannot be used inconstfunctions.Related to #79114 and #79134