rust/compiler
bors c97d02cdb5 Auto merge of #102394 - dingxiangfei2009:issue-102317, r=oli-obk
Fix unwind drop glue for if-then scopes

cc `@est31`

Fix #102317
Fix #99852

This PR fixes the drop glue for unwinding from a panic originated in a drop while breaking out for the else block in an `if-then` scope.
MIR validation does not fail for the synchronous versions of the test program, because `StorageDead` statements are skipped over in the unwinding process. It is only becoming a problem when it is inside a generator where `StorageDead` must be kept around.
2022-10-05 20:47:39 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Rewrite Token::is_op. 2022-10-03 11:42:29 +11:00
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_borrowck It's not about types or consts, but the lack of regions 2022-10-04 14:10:44 +00:00
rustc_builtin_macros Rollup merge of #101040 - danielhenrymantilla:no-bounds-for-default-annotated-derive, r=joshtriplett 2022-10-03 20:58:55 +02:00
rustc_codegen_cranelift
rustc_codegen_gcc Remove type argument of array_alloca and rename to byte_array_alloca 2022-10-02 13:42:14 +00:00
rustc_codegen_llvm Auto merge of #98736 - alex:lipo-magic, r=bjorn3 2022-10-05 11:41:40 +00:00
rustc_codegen_ssa Rollup merge of #102440 - sunfishcode:sunfishcode/wasm-no-export-tls-api, r=oli-obk 2022-10-05 17:27:33 +05:30
rustc_const_eval change might_permit_raw_init to fully detect LLVM UB, but not more than that 2022-10-05 09:22:50 +02:00
rustc_data_structures
rustc_driver
rustc_error_codes Cleanup some error code explanations 2022-10-03 08:53:06 +02:00
rustc_error_messages Rollup merge of #102568 - compiler-errors:lint-unsatisfied-opaques, r=oli-obk 2022-10-04 16:11:02 +05:30
rustc_errors
rustc_expand Improve spans when splitting multi-char operator tokens for proc macros. 2022-10-04 09:08:02 +11:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Rollup merge of #102496 - compiler-errors:into-suggestion, r=davidtwco 2022-10-05 17:27:33 +05:30
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Rollup merge of #102496 - compiler-errors:into-suggestion, r=davidtwco 2022-10-05 17:27:33 +05:30
rustc_interface
rustc_lexer
rustc_lint Rollup merge of #102568 - compiler-errors:lint-unsatisfied-opaques, r=oli-obk 2022-10-04 16:11:02 +05:30
rustc_lint_defs
rustc_llvm
rustc_log
rustc_macros errors: rename typeck.ftl to hir_analysis.ftl 2022-10-03 13:52:17 +01:00
rustc_metadata
rustc_middle Rollup merge of #102651 - oli-obk:non_region_things, r=lcnr 2022-10-04 18:26:41 +02:00
rustc_mir_build Auto merge of #102394 - dingxiangfei2009:issue-102317, r=oli-obk 2022-10-05 20:47:39 +00:00
rustc_mir_dataflow
rustc_mir_transform
rustc_monomorphize It's not about types or consts, but the lack of regions 2022-10-04 14:10:44 +00:00
rustc_parse Invert is_top_level to avoid negation. 2022-10-03 11:42:29 +11:00
rustc_parse_format
rustc_passes Merge the ~const and impl const checks and add some explanatory notes 2022-10-04 08:59:20 +00:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve
rustc_save_analysis
rustc_serialize
rustc_session
rustc_smir
rustc_span
rustc_symbol_mangling It's not about types or consts, but the lack of regions 2022-10-04 14:10:44 +00:00
rustc_target change might_permit_raw_init to fully detect LLVM UB, but not more than that 2022-10-05 09:22:50 +02:00
rustc_trait_selection Rollup merge of #102670 - lyming2007:issue-101866-fix, r=compiler-errors 2022-10-04 20:45:14 -07:00
rustc_traits It's not about types or consts, but the lack of regions 2022-10-04 14:10:44 +00:00
rustc_transmute check if const is ADT or not 2022-10-03 17:51:18 +09:00
rustc_ty_utils Rollup merge of #102653 - lcnr:delay_span_bug, r=fee1-dead 2022-10-04 18:26:41 +02:00
rustc_type_ir