about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-07-19 19:48:21 +0000
committerLeón Orell Valerian Liehr <me@fmease.dev>2024-09-18 19:21:07 +0200
commitbd8e88fd7b2401242cbcc95d88ef7b8058d59a77 (patch)
treeaee953e5b4763f2a97bbe4943dbc13fa81090676 /compiler/rustc_codegen_llvm/src/builder.rs
parentaaed38b2a631dfc593454abf471d75d84033773e (diff)
downloadrust-bd8e88fd7b2401242cbcc95d88ef7b8058d59a77.tar.gz
rust-bd8e88fd7b2401242cbcc95d88ef7b8058d59a77.zip
Do not ICE with incorrect empty suggestion
When we have two types with the same name, one without type parameters and the other with type parameters and a derive macro, we were before incorrectly suggesting to remove type parameters from the former, which ICEd because we were suggesting to remove nothing. We now gate against this.

The output is still not perfect. E0107 should explicitly detect this case and provide better context, but for now let's avoid the ICE.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions