New deny(const_err) in unreachable code #52966
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
P-high
High priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
relnotes
Marks issues that should be documented in the release notes of the next release.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(playground)
This compiles and runs fine on a 32-bit target, but fails on 64-bit 1.29.0-beta.1:
The same code is fine without even a warning on 64-bit stable 1.27.2. It's also fine on the pre-release 1.28.0 where
const-err
becamedeny
-by-default (#50653), because the lint isn't triggering at all.I'm guessing that const-eval is just evaluating more now, thus triggering the lint more often. If this is decided not to be called a regression, it at least warrants a release note for 1.29.
The text was updated successfully, but these errors were encountered: