Skip to content

Commit

Permalink
Auto merge of #116125 - RalfJung:const-param-ty-eq, r=compiler-errors
Browse files Browse the repository at this point in the history
ConstParamTy: require Eq as supertrait

As discussed with `@BoxyUwu` [on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics/topic/.60ConstParamTy.60.20and.20.60Eq.60).

We want to say that valtree equality on const generic params agrees with `==`, but that only makes sense if `==` actually exists, hence we should have an appropriate bound. Valtree equality is an equivalence relation, so such a type can always be `Eq` and not just `PartialEq`.
  • Loading branch information
bors committed Sep 26, 2023
2 parents 50ee0d7 + 6792927 commit fa4a037
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit fa4a037

Please sign in to comment.