]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #107304 - Nilstrieb:ᐸTy as PartialEqᐳ::eq because what else are we...
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 26 Jan 2023 06:53:26 +0000 (07:53 +0100)
committerGitHub <noreply@github.com>
Thu, 26 Jan 2023 06:53:26 +0000 (07:53 +0100)
commit3aeafca070dbb6234646714db2fe0b960d7e2d80
treed25213f98168d11afcefce496c20cc50c475fde8
parentf2f123470f363efaf7a2dd70e21e3d70479e4ee8
parent943000fdcf9eac6c77b44923f551409aa06a46b5
Rollup merge of #107304 - Nilstrieb:ᐸTy as PartialEqᐳ::eq because what else are we gonna use in rustc_middle, r=compiler-errors

Use `can_eq` to compare types for default assoc type error

This correctly handles inference variables like `{integer}`. I had to move all of this `note_and_explain` code to `rustc_infer`, it made no sense for it to be in `rustc_middle` anyways.

The commits are reviewed separately.

Fixes #106968