5 ms·
This doesn't seem like a bug in rustc at all. Maybe just by emitting bad IR. But this is actually bug in LLVM.
by VWWHFSfQ 5y ago
This doesn't seem like a bug in rustc at all. Maybe just by emitting bad IR. But this is actually bug in LLVM.
- DannyBee 5y agowhy? They are using a build with assertions/etc disabled, so it segfaults rather than asserts. When you use a build that is set not to do that, it gives you an error :)
- woodruffw 5y agoI think it's reasonable to consider it a bug in both: it's a MIR lowering bug, one that gets promoted into a different bug by LLVM.
- LAC-Tech 5y agoIf rustc uses a dependency that has a bug and this manifests itself as a bug in rustc, then IMO rustc still has a bug.
- tsimionescu 5y agoNo, LLVM is configured by rustc to NOT to check its input (for performance reasons), so it's normal for it to crash if fed invalid input. The bug is 100% in rustc's court.