rust/compiler/rustc_const_eval/src
bors 4566094913 Auto merge of #94512 - RalfJung:sdiv-ub, r=oli-obk
Miri/CTFE: properly treat overflow in (signed) division/rem as UB

To my surprise, it looks like LLVM treats overflow of signed div/rem as UB. From what I can tell, MIR `Div`/`Rem` directly lowers to the corresponding LLVM operation, so to make that correct we also have to consider these overflows UB in the CTFE/Miri interpreter engine.

r? `@oli-obk`
2022-03-03 12:56:24 +00:00
..
const_eval rename ErrorReported -> ErrorGuaranteed 2022-03-02 09:45:25 -06:00
interpret Auto merge of #94512 - RalfJung:sdiv-ub, r=oli-obk 2022-03-03 12:56:24 +00:00
transform rename ErrorReported -> ErrorGuaranteed 2022-03-02 09:45:25 -06:00
util rustc_const_eval: adopt let else in more places 2022-02-19 01:55:47 +01:00
lib.rs Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00