rust/compiler
Esteban Küber 55f8c66a60 Point at return type when it influences non-first match arm
When encountering code like

```rust
fn foo() -> i32 {
    match 0 {
        1 => return 0,
        2 => "",
        _ => 1,
    }
}
```

Point at the return type and not at the prior arm, as that arm has type
`!` which isn't influencing the arm corresponding to arm `2`.

Fix #78124.
2023-08-14 21:43:56 +00:00
..
rustc
rustc_abi
rustc_arena
rustc_ast Auto merge of #114545 - fee1-dead-contrib:lower-impl-effect, r=oli-obk 2023-08-08 19:23:41 +00:00
rustc_ast_lowering Remove constness from ImplSource::Param 2023-08-14 02:17:30 +00:00
rustc_ast_passes rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
rustc_ast_pretty
rustc_attr rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
rustc_baked_icu_data
rustc_borrowck review 2023-08-14 15:27:14 +02:00
rustc_builtin_macros rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
rustc_codegen_cranelift Rollup merge of #114622 - petrochenkov:noplugin, r=oli-obk 2023-08-10 21:17:07 -07:00
rustc_codegen_gcc
rustc_codegen_llvm Auto merge of #113722 - bjorn3:allocator_shim_refactor, r=jackh726 2023-08-13 16:49:49 +00:00
rustc_codegen_ssa Remove unnecessary feature gates 2023-08-12 00:21:04 -04:00
rustc_const_eval Remove constness from ImplSource::Param 2023-08-14 02:17:30 +00:00
rustc_data_structures Auto merge of #114339 - ttsugriy:unsafe-utf8, r=davidtwco 2023-08-08 10:25:37 +00:00
rustc_driver
rustc_driver_impl rustc: Move crate_types from Session to GlobalCtxt 2023-08-09 14:17:54 +08:00
rustc_error_codes
rustc_error_messages
rustc_errors
rustc_expand rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
rustc_feature feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Bugfix: 'can_have_side_effects()' would return 'false' for struct/enum/array/tuple literals unless *all* sub-expressions had side effects. This would easily allow side effects to slip through, and also wrongly label empty literals as having side effects. Add some tests for the last point 2023-08-10 02:26:11 +02:00
rustc_hir_analysis Auto merge of #114787 - compiler-errors:issue-114783, r=jackh726 2023-08-14 00:33:17 +00:00
rustc_hir_pretty Auto merge of #114545 - fee1-dead-contrib:lower-impl-effect, r=oli-obk 2023-08-08 19:23:41 +00:00
rustc_hir_typeck Point at return type when it influences non-first match arm 2023-08-14 21:43:56 +00:00
rustc_incremental
rustc_index
rustc_infer Point at return type when it influences non-first match arm 2023-08-14 21:43:56 +00:00
rustc_interface rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
rustc_lexer
rustc_lint Auto merge of #114757 - Urgau:transmute-with-invalid_reference_casting, r=est31 2023-08-13 12:46:00 +00:00
rustc_lint_defs
rustc_llvm Auto merge of #114005 - Zalathar:no-cstr, r=jackh726 2023-08-10 23:06:10 +00:00
rustc_log
rustc_macros
rustc_metadata rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
rustc_middle Point at return type when it influences non-first match arm 2023-08-14 21:43:56 +00:00
rustc_mir_build Rollup merge of #114566 - fmease:type-alias-laziness-is-crate-specific, r=oli-obk 2023-08-08 03:30:56 +02:00
rustc_mir_dataflow
rustc_mir_transform Store BCB counters externally, not directly in the BCB graph 2023-08-13 12:18:06 +10:00
rustc_monomorphize Store the laziness of type aliases in the DefKind 2023-08-07 15:54:31 +02:00
rustc_parse inlined kind 2023-08-08 10:59:15 +08:00
rustc_parse_format
rustc_passes Auto merge of #114723 - petrochenkov:noplugin2, r=davidtwco 2023-08-13 10:59:36 +00:00
rustc_plugin_impl
rustc_privacy Store the laziness of type aliases in the DefKind 2023-08-07 15:54:31 +02:00
rustc_query_impl
rustc_query_system Rollup merge of #114566 - fmease:type-alias-laziness-is-crate-specific, r=oli-obk 2023-08-08 03:30:56 +02:00
rustc_resolve rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
rustc_serialize
rustc_session rustc: Move features from Session to GlobalCtxt 2023-08-11 16:51:50 +08:00
rustc_smir Rollup merge of #114703 - ouz-a:smir_allocation, r=oli-obk 2023-08-12 12:06:37 +02:00
rustc_span feat: riscv-interrupt-{m,s} calling conventions 2023-08-08 18:09:56 -07:00
rustc_symbol_mangling Auto merge of #114672 - lenawanel:master, r=compiler-errors 2023-08-11 09:30:41 +00:00
rustc_target Auto merge of #114614 - RalfJung:offset-of-sanity, r=cjgillot 2023-08-10 07:54:05 +00:00
rustc_trait_selection Point at return type when it influences non-first match arm 2023-08-14 21:43:56 +00:00
rustc_traits
rustc_transmute
rustc_ty_utils Rollup merge of #114670 - compiler-errors:issue-114660, r=cjgillot 2023-08-09 23:00:00 +02:00
rustc_type_ir Comment nits 2023-08-10 23:22:03 +00:00