rust/compiler/rustc_mir_build/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
..
build Move scrutinee HirId into MatchSource::TryDesugar 2023-08-14 21:43:56 +00:00
thir Rollup merge of #114819 - estebank:issue-78124, r=compiler-errors 2023-08-15 20:34:25 +02:00
check_unsafety.rs Implement "items do not inherit unsafety" for THIR unsafeck 2023-07-15 11:59:38 -04:00
errors.rs inline format!() args from rustc_codegen_llvm to the end (4) 2023-07-25 23:20:28 +02:00
lib.rs Make unconditional_recursion warning detect recursive drops 2023-07-22 14:04:45 +02:00
lints.rs Make unconditional_recursion warning detect recursive drops 2023-07-22 14:04:45 +02:00