rust/compiler
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
..
rustc
rustc_apfloat /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_arena Auto merge of #77172 - jonas-schievink:rollup-a041rou, r=jonas-schievink 2020-09-25 01:56:06 +00:00
rustc_ast tidy 2020-09-23 22:08:30 +02:00
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr Don't use an if guard to check equality with a constant 2020-09-23 00:29:56 +02:00
rustc_builtin_macros Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514 2020-09-25 02:29:45 +02:00
rustc_codegen_llvm /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_codegen_ssa /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_data_structures Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514 2020-09-25 02:29:45 +02:00
rustc_driver /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_error_codes
rustc_errors /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_expand
rustc_feature
rustc_fs_util
rustc_graphviz /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_hir
rustc_hir_pretty
rustc_incremental /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_index
rustc_infer Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514 2020-09-25 02:29:45 +02:00
rustc_interface
rustc_lexer
rustc_lint Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514 2020-09-25 02:29:45 +02:00
rustc_llvm /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_macros
rustc_metadata Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514 2020-09-25 02:29:45 +02:00
rustc_middle Rollup merge of #77165 - simonvandel:do-not-fire-on-drop-and-replace, r=oli-obk 2020-09-25 02:29:52 +02:00
rustc_mir Auto merge of #76844 - simonvandel:fix-76803, r=wesleywiser 2020-09-25 04:17:03 +00:00
rustc_mir_build Auto merge of #76918 - ishitatsuyuki:match-fastpath, r=oli-obk 2020-09-24 17:22:56 +00:00
rustc_parse Rollup merge of #76994 - yuk1ty:fix-small-typo, r=estebank 2020-09-23 14:54:07 +02:00
rustc_parse_format /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_passes /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_plugin_impl /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_privacy /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_query_system
rustc_resolve /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_save_analysis /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_serialize /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_session
rustc_span Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514 2020-09-25 02:29:45 +02:00
rustc_symbol_mangling /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_target Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514 2020-09-25 02:29:45 +02:00
rustc_trait_selection Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514 2020-09-25 02:29:45 +02:00
rustc_traits
rustc_ty /nightly/nightly-rustc 2020-09-23 21:51:56 +02:00
rustc_typeck Rollup merge of #77121 - duckymirror:html-root-url, r=jyn514 2020-09-25 02:29:45 +02:00