-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.
Milestone
Description
Before the miri merger, you were allowed to write pub const FOO: usize = 0 - 1;
(producing just a warning), but using it either in this crate or another produced an error.
Since the miri merger, these kinds of constants have become hard errors (just like within statics).
This is of course a breaking change. So we need to decide whether to move back to the warning, or break this now. The warnings have existed for a very long time, but were never moved to deny-by-default
cc @rust-lang/lang
related: #47054
Metadata
Metadata
Assignees
Labels
T-langRelevant to the language teamRelevant to the language teamregression-from-stable-to-betaPerformance or correctness regression from stable to beta.Performance or correctness regression from stable to beta.