rust/compiler/rustc_trait_selection
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
..
src Point at return type when it influences non-first match arm 2023-08-14 21:43:56 +00:00
Cargo.toml drop unused deps, gate libc under unix for one crate 2023-04-22 15:22:21 +03:00
messages.ftl Migrate a trait selection error to use diagnostic translation 2023-08-07 05:26:38 +00:00