You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of the expected result, we get [?0 := i32, ?1 := u32], which is technically correct because our GAT parameter U is mapped to ?0 and T is mapped to ?1. But there's no way to see this from the output of chalk.
Implicit type parameters (like
Self
and others from the env) are put into a lowered item after the explicit type parameters, which is surprising.For example, the following test fails:
Instead of the expected result, we get
[?0 := i32, ?1 := u32]
, which is technically correct because our GAT parameterU
is mapped to?0
andT
is mapped to?1
. But there's no way to see this from the output of chalk.See for example: https://github.com/rust-lang-nursery/chalk/blob/94a1941a021842a5fcb35cd043145c8faae59f08/src/ir/lowering.rs#L183-L185
This will probably have to be changed in a bunch of places.
The text was updated successfully, but these errors were encountered: