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
..
2023-08-08 19:23:41 +00:00
2023-08-14 21:43:56 +00:00
2023-08-11 16:51:50 +08:00
2023-08-11 16:51:50 +08:00
2023-08-14 15:27:14 +02:00
2023-08-11 16:51:50 +08:00
2023-08-15 00:09:20 +08:00
2023-08-15 11:59:02 +00:00
2023-08-15 11:59:02 +00:00
2023-08-15 14:29:45 +02:00
2023-08-14 02:17:30 +00:00
2023-08-08 10:25:37 +00:00
2023-08-09 14:17:54 +08:00
2023-08-05 11:52:07 +00:00
2023-08-11 16:51:50 +08:00
2023-08-15 02:13:17 +08:00
2023-08-14 21:43:56 +00:00
2023-08-15 14:29:45 +02:00
2023-08-08 19:23:41 +00:00
2023-08-15 20:34:25 +02:00
2023-08-13 16:07:48 +00:00
2023-08-15 20:34:25 +02:00
2023-08-14 16:16:51 +00:00
2023-08-15 14:29:45 +02:00
2023-08-15 03:44:21 +00:00
2023-08-14 23:02:36 +08:00
2023-08-13 16:38:50 +00:00
2023-08-15 20:34:25 +02:00
2023-08-15 20:34:25 +02:00
2023-08-06 17:26:29 +02:00
2023-08-13 12:18:06 +10:00
2023-08-07 15:54:31 +02:00
2023-08-13 13:33:37 +00:00
2023-08-15 20:34:25 +02:00
2023-08-14 07:22:48 +00:00
2023-08-13 16:07:48 +00:00
2023-08-11 16:51:50 +08:00
2023-08-13 13:33:37 +00:00
2023-08-14 21:57:51 +02:00
2023-08-15 14:29:45 +02:00
2023-08-11 09:30:41 +00:00
2023-08-15 14:29:45 +02:00
2023-08-15 20:34:25 +02:00
2023-08-09 23:00:00 +02:00
2023-08-10 23:22:03 +00:00