rust/compiler/rustc_passes/src
Matthias Krüger 8db5a6d8ee
Rollup merge of #114819 - estebank:issue-78124, r=compiler-errors
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-15 20:34:25 +02:00
..
liveness
check_attr.rs Use {Local}ModDefId in many queries 2023-08-14 07:22:48 +00:00
check_const.rs Rollup merge of #114819 - estebank:issue-78124, r=compiler-errors 2023-08-15 20:34:25 +02:00
dead.rs Use {Local}ModDefId in many queries 2023-08-14 07:22:48 +00:00
debugger_visualizer.rs
diagnostic_items.rs
entry.rs Remove reached_eof from ParseSess 2023-08-13 13:33:37 +00:00
errors.rs check_attrs: Warn when #[macro_export] is used on macros 2.0 2023-08-07 21:14:28 +02:00
hir_id_validator.rs inline format!() args from rustc_codegen_llvm to the end (4) 2023-07-25 23:20:28 +02:00
hir_stats.rs inline format!() args from rustc_codegen_llvm to the end (4) 2023-07-25 23:20:28 +02:00
lang_items.rs
layout_test.rs Store the laziness of type aliases in the DefKind 2023-08-07 15:54:31 +02:00
lib_features.rs
lib.rs
liveness.rs Improve spans for indexing expressions 2023-08-04 13:17:39 +02:00
loops.rs Use {Local}ModDefId in many queries 2023-08-14 07:22:48 +00:00
naked_functions.rs Use {Local}ModDefId in many queries 2023-08-14 07:22:48 +00:00
reachable.rs rustc: Move crate_types from Session to GlobalCtxt 2023-08-09 14:17:54 +08:00
stability.rs Rollup merge of #114772 - fee1-dead-contrib:typed-did, r=b-naber 2023-08-15 14:29:45 +02:00
upvars.rs
weak_lang_items.rs rustc: Move crate_types from Session to GlobalCtxt 2023-08-09 14:17:54 +08:00