rust/compiler/rustc_mir/src
bors 9d74efe32e Auto merge of #76844 - simonvandel:fix-76803, r=wesleywiser
Fix #76803 miscompilation

Fixes #76803
Seems like it was an oversight that the discriminant value being set was not compared to the target value from the SwitchInt, as a comment says this is a requirement for the optimization to be sound.

r? `@wesleywiser` since you are probably familiar with the optimization and made #76837 to workaround the bug
2020-09-25 04:17:03 +00:00
..
borrow_check Rollup merge of #76724 - ecstatic-morse:dataflow-pass-names, r=lcnr 2020-09-25 02:29:31 +02:00
const_eval Reflect the "do not call this query directly" mentality in its name 2020-09-19 10:57:14 +02:00
dataflow Rollup merge of #76724 - ecstatic-morse:dataflow-pass-names, r=lcnr 2020-09-25 02:29:31 +02:00
interpret Miri: more informative deallocation error messages 2020-09-22 09:05:12 +02:00
monomorphize Let user see the full type of type-length limit error 2020-09-21 00:39:58 +01:00
transform Auto merge of #76844 - simonvandel:fix-76803, r=wesleywiser 2020-09-25 04:17:03 +00:00
util Stop using the const_eval query for initializers of statics 2020-09-19 10:36:36 +02:00
lib.rs Auto merge of #76964 - RalfJung:rollup-ybn06fs, r=RalfJung 2020-09-20 11:02:36 +00:00
shim.rs Auto merge of #75346 - davidtwco:issue-69925-polymorphic-instancedef-fnptrshim, r=nikomatsakis 2020-09-20 04:15:43 +00:00