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
{{ message }}
Repository navigation
don't eagerly emit errors when evaluating constants during selection #87001
error[E0080]: evaluation of `<Bar<0_usize> as Foo>::{constant#0}` failed
--> src/lib.rs:6:48
|
6 | impl<const N: usize> Foo for Bar<N> where [u8; N - 1]: {}
| ^^^^^ attempt to compute `0_usize - 1_usize`, which would overflow
while checking whether the two impls overlap during coherence. Failing to evaluate a generic constant in the where clauses should not eagerly cause an error if it happens during selection. See #81339 for how to fix this issue, I did not have the capacity to finish that PR.
Activity
b-naber commentedon Jan 4, 2022
@rustbot claim
lcnr commentedon Jun 24, 2022
(tracked in rust-lang/project-const-generics#25)