mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
2dfd77d675
Prior to a change, it would only look at types in bounds. When it started looking for consts, shadowing type variables with a const would cause an ICE, so now defer looking at consts only if there are no types present.
For more information about how rustc works, see the rustc dev guide.