Files
rust/compiler/rustc_middle/src
Guillaume Gomez 77eaa80d5c Rollup merge of #121146 - compiler-errors:ignore-diverging-arms, r=estebank
Only point out non-diverging arms for match suggestions

Fixes #121144

There is no reason to point at diverging arms, which will always coerce to whatever is the match block's evaluated type.

This also removes the suggestion from #106601, since as I pointed out in https://github.com/rust-lang/rust/issues/72634#issuecomment-1946210898 the added suggestion is not firing in the right cases, but instead only when one of the match arms already *actually* evaluates to `()`.

r? estebank
2024-02-16 00:27:34 +01:00
..
2023-11-16 16:49:22 +11:00
2023-11-01 16:49:18 +00:00
2024-02-12 15:46:35 +09:00
2024-01-05 10:56:59 +00:00
2024-02-15 18:44:49 +00:00
2024-02-12 18:39:20 +11:00
2024-02-02 22:47:26 +00:00
2024-01-29 07:41:41 +11:00