Open preston-evans98 opened 1 year ago
A bit hard to bisect this one, considering there's no Cargo.lock
and most of the dependencies end up being resolved to a version too new for the compiler to handle (not to mention reproducibility). As an additional bonus, the specified commit cannot even be found in the repository (thankfully, it is still possible to just download it as an archive instead of cloning it).
I tried this code: I was in the process of developing a somewhat complicated macro to derive
clap::Parser
on a generic type, and I encountered an unexpected panic in Rustc. The full code to reproduce the panic is here: https://github.com/Sovereign-Labs/sovereign-sdk/pull/423/commits/5935c6727e6f347f5f42fb4463e7595971799e01. To reproduce...git clone https://github.com/Sovereign-Labs/sovereign-sdk.git && cd sovereign-sdk
git checkout 5935c6727e6f347f5f42fb4463e7595971799e01
cargo check
I expected to see this happen: explanation
The code in question is almost certainly not correct, but it should have produced an error rather than a panic.
Instead, this happened: explanation
Meta
rustc --version --verbose
: