]> git.lizzy.rs Git - rust.git/commit
Release mode overflows should not cause const eval to error
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Thu, 17 May 2018 10:07:00 +0000 (12:07 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Sat, 19 May 2018 11:10:51 +0000 (13:10 +0200)
commitd81651e8e9af5c8c40a4bd9b6b7becf12486bdad
tree9e645a6f5644a4884aa5590270c94f504af0263c
parentbdace29de04af4fe9e4317b73c3f7d6418a33de1
Release mode overflows should not cause const eval to error
src/librustc_mir/interpret/eval_context.rs
src/test/run-fail/promoted_div_by_zero.rs [new file with mode: 0644]
src/test/run-fail/promoted_overflow.rs [new file with mode: 0644]
src/test/run-pass/promoted_overflow_opt.rs [new file with mode: 0644]
src/test/ui/const-eval/promoted_errors.rs
src/test/ui/const-eval/promoted_errors.stderr