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
Not using anon consts for uses of const parameters caused us to accept more code for free type aliases #149774
This previously didn't compile but started to in 1.83, not sure which PR but probably something like #129137.
This is because the RHS of free type aliases are not well formed checked. Previously we caught this anyway by implicitly having an anon const with type usize that wrapped the usage of B which caused a separate type checker error when type checking the anon const.
Nowadays we just directly represent it without an anon const and rely on WellFormed([u8; B]) checking that B is of type usize. It might be possible to generate the list of wf predicates for the RHS of free type aliases and then only prove the ConstArgHasType clauses to fix this?
Activity
Auto merge of #152931 - khyperia:always-check-constarghastype, r=BoxyUwU
Auto merge of #152931 - khyperia:always-check-constarghastype, r=BoxyUwU
Auto merge of #152931 - khyperia:always-check-constarghastype, r=BoxyUwU
Auto merge of #152931 - khyperia:always-check-constarghastype, r=BoxyUwU
Auto merge of #152931 - khyperia:always-check-constarghastype, r=BoxyUwU
Auto merge of #152931 - khyperia:always-check-constarghastype, r=BoxyUwU
Auto merge of #152931 - khyperia:always-check-constarghastype, r=BoxyUwU