-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arithmetic-overflow checks during const-eval #23863
Commits on Apr 1, 2015
-
Added type-specific overflow checks when computing enum discriminant …
…values. Moved such overflow checking into one place (in `rustc::middle::ty`, since it needs to be run on-demand during `const_eval` in some scenarios), and revised `rustc_typeck` accordingly. (Note that we only check for overflow if program did not provide a discriminant value explicitly.) Fix rust-lang#23030 Fix rust-lang#23221 Fix rust-lang#23235
Configuration menu - View commit details
-
Copy full SHA for 4e04d57 - Browse repository at this point
Copy the full SHA 4e04d57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 36b6d0e - Browse repository at this point
Copy the full SHA 36b6d0eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b57df7 - Browse repository at this point
Copy the full SHA 0b57df7View commit details -
Fix rust-lang#23890: const-eval
_ as usize
,_ as isize
must dispa……tch to target type.
Configuration menu - View commit details
-
Copy full SHA for 792f6aa - Browse repository at this point
Copy the full SHA 792f6aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60289ac - Browse repository at this point
Copy the full SHA 60289acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f7658a - Browse repository at this point
Copy the full SHA 2f7658aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7875dae - Browse repository at this point
Copy the full SHA 7875daeView commit details -
rust_llvm: Add way to reflectively ask if a ValueRef is a known const…
…ant int. Add option-returning variants to `const_to_int`/`const_to_uint` that never assert fail. (These will be used for overflow checking from rustc_trans::trans::consts.)
Configuration menu - View commit details
-
Copy full SHA for 2e93e38 - Browse repository at this point
Copy the full SHA 2e93e38View commit details -
rustc::middle::const_eval : add overflow-checking for {+, -, *}.
The overflow-checking attempts to accommodate early evaluation where we do not have type information yet. Also, add fixme note about something that has been bothering me.
Configuration menu - View commit details
-
Copy full SHA for b02f7d2 - Browse repository at this point
Copy the full SHA b02f7d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6808e41 - Browse repository at this point
Copy the full SHA 6808e41View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d54ea3 - Browse repository at this point
Copy the full SHA 8d54ea3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41b3c86 - Browse repository at this point
Copy the full SHA 41b3c86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f5e45b - Browse repository at this point
Copy the full SHA 1f5e45bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1973f7e - Browse repository at this point
Copy the full SHA 1973f7eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2243a2c - Browse repository at this point
Copy the full SHA 2243a2cView commit details -
dealing with fallout to the tests, in particular diffs between 32- vs…
… 64-bit targets. See also rust-lang#23926.
Configuration menu - View commit details
-
Copy full SHA for 2a9de1d - Browse repository at this point
Copy the full SHA 2a9de1dView commit details