diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-02-16 00:27:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-16 00:27:34 +0100 |
| commit | 77eaa80d5c662710f223c657a49dc5f2d80a0e41 (patch) | |
| tree | bd839604be86272eddd514df25fa324ef57d6b7f /compiler/rustc_codegen_gcc | |
| parent | d6e2fc558928b79330758cda9c23d549be9886ba (diff) | |
| parent | 6018e21d8ad072d28dbd2e991dfd8295e2de321f (diff) | |
| download | rust-77eaa80d5c662710f223c657a49dc5f2d80a0e41.tar.gz rust-77eaa80d5c662710f223c657a49dc5f2d80a0e41.zip | |
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
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
