rust/compiler
bors 1c858ba5bf Auto merge of #88678 - matthewjasper:if-boolean-scoping, r=oli-obk
Change scope of temporaries in match guards

Each pattern in a match arm has its own copy of the match guard in MIR, with its own temporary, so it has to be dropped before the the guards are joined to the single copy of the arm. This PR changes `then_else_break` to allow it to put the temporary in the innermost scope possible. This change isn't done for `if` expressions because that affects a large number of mir-opt tests and could more significantly affect performance.

closes #88649

r? `@oli-obk`
2021-09-06 10:39:21 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #88598 - estebank:type-ascription-can-die-in-a-fire, r=wesleywiser 2021-09-04 01:40:36 +00:00
rustc_ast_lowering Replace Vec by Option. 2021-09-03 23:36:22 +02:00
rustc_ast_passes Auto merge of #87114 - cjgillot:abilint, r=estebank 2021-09-02 06:06:24 +00:00
rustc_ast_pretty
rustc_attr
rustc_builtin_macros Auto merge of #88598 - estebank:type-ascription-can-die-in-a-fire, r=wesleywiser 2021-09-04 01:40:36 +00:00
rustc_codegen_cranelift Auto merge of #88499 - eddyb:layout-off, r=nagisa 2021-09-05 16:14:41 +00:00
rustc_codegen_llvm Auto merge of #88499 - eddyb:layout-off, r=nagisa 2021-09-05 16:14:41 +00:00
rustc_codegen_ssa Auto merge of #88499 - eddyb:layout-off, r=nagisa 2021-09-05 16:14:41 +00:00
rustc_data_structures Rollup merge of #88053 - bjorn3:fix_flock_fallback_impl, r=cjgillot 2021-09-01 09:23:25 +02:00
rustc_driver Remove print_fuel_crate field of Session 2021-09-02 12:29:11 +02:00
rustc_error_codes
rustc_errors Auto merge of #88493 - chenyukang:fix-duplicated-diagnostic, r=estebank 2021-09-06 00:14:41 +00:00
rustc_expand Auto merge of #88598 - estebank:type-ascription-can-die-in-a-fire, r=wesleywiser 2021-09-04 01:40:36 +00:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir Auto merge of #88435 - cjgillot:no-walk-crate, r=Aaron1011 2021-09-05 21:40:34 +00:00
rustc_hir_pretty
rustc_incremental Stop using walk_crate. 2021-09-02 19:08:58 +02:00
rustc_index
rustc_infer Auto merge of #88363 - michaelwoerister:remapped-diagnostics, r=estebank 2021-09-03 00:23:10 +00:00
rustc_interface Auto merge of #88435 - cjgillot:no-walk-crate, r=Aaron1011 2021-09-05 21:40:34 +00:00
rustc_lexer
rustc_lint Auto merge of #88435 - cjgillot:no-walk-crate, r=Aaron1011 2021-09-05 21:40:34 +00:00
rustc_lint_defs
rustc_llvm
rustc_macros
rustc_metadata Auto merge of #88538 - bjorn3:no_session_in_crate_loader, r=petrochenkov 2021-09-04 07:17:12 +00:00
rustc_middle Auto merge of #88493 - chenyukang:fix-duplicated-diagnostic, r=estebank 2021-09-06 00:14:41 +00:00
rustc_mir Auto merge of #88499 - eddyb:layout-off, r=nagisa 2021-09-05 16:14:41 +00:00
rustc_mir_build Change scope of temporaries in match guards 2021-09-05 18:50:55 +01:00
rustc_parse Rollup merge of #88257 - estebank:invalid-attr-error, r=oli-obk 2021-09-05 10:32:20 +02:00
rustc_parse_format
rustc_passes Auto merge of #88435 - cjgillot:no-walk-crate, r=Aaron1011 2021-09-05 21:40:34 +00:00
rustc_plugin_impl
rustc_privacy Rename walk_crate. 2021-09-02 19:23:11 +02:00
rustc_query_impl Add query own_existential_vtable_entries 2021-09-05 18:13:32 +01:00
rustc_query_system Remove redundant Span in QueryJobInfo 2021-09-01 11:10:58 -07:00
rustc_resolve Auto merge of #88598 - estebank:type-ascription-can-die-in-a-fire, r=wesleywiser 2021-09-04 01:40:36 +00:00
rustc_save_analysis Rename walk_crate. 2021-09-02 19:23:11 +02:00
rustc_serialize
rustc_session Add explanation for ctfe_backtrace lock 2021-09-02 12:29:12 +02:00
rustc_span Auto merge of #88363 - michaelwoerister:remapped-diagnostics, r=estebank 2021-09-03 00:23:10 +00:00
rustc_symbol_mangling
rustc_target Auto merge of #88499 - eddyb:layout-off, r=nagisa 2021-09-05 16:14:41 +00:00
rustc_trait_selection Add query own_existential_vtable_entries 2021-09-05 18:13:32 +01:00
rustc_traits
rustc_ty_utils
rustc_type_ir
rustc_typeck Auto merge of #88631 - camelid:sugg-span, r=davidtwco 2021-09-06 07:58:24 +00:00