rust/compiler/rustc_trait_selection/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
..
solve Rollup merge of #114831 - compiler-errors:next-solver-projection-subst-compat, r=lcnr 2023-08-15 14:29:50 +02:00
traits Rollup merge of #114819 - estebank:issue-78124, r=compiler-errors 2023-08-15 20:34:25 +02:00
errors.rs Migrate a trait selection error to use diagnostic translation 2023-08-07 05:26:38 +00:00
infer.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
lib.rs remove hash_drain_filter feature uses 2023-06-14 09:28:56 +02:00