-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Integer overflow checking #6012
Copy link
Copy link
Closed
Labels
A-codegenArea: Code generationArea: Code generationE-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Hard difficulty. Experience needed to fix: A lot.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationE-hardCall for participation: Hard difficulty. Experience needed to fix: A lot.Call for participation: Hard difficulty. Experience needed to fix: A lot.
Type
Fields
Give feedbackNo fields configured for issues without a type.
At various times, the issue of whether we should enable integer overflow checking (meaning that an integer overflow would be a hard failure at runtime rather than silently wrapping around) has come up; most recently, in this mailing list thread. A more specific example (which I'm about to close in favor of this more general bug) is #2470.
We should decide whether we want to address this form of safety in Rust's semantics.