about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-02-16 00:27:34 +0100
committerGitHub <noreply@github.com>2024-02-16 00:27:34 +0100
commit77eaa80d5c662710f223c657a49dc5f2d80a0e41 (patch)
treebd839604be86272eddd514df25fa324ef57d6b7f /compiler/rustc_codegen_llvm/src/builder.rs
parentd6e2fc558928b79330758cda9c23d549be9886ba (diff)
parent6018e21d8ad072d28dbd2e991dfd8295e2de321f (diff)
downloadrust-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_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions