rust/compiler/rustc_middle/src
Matthias Krüger 8ddc0df1f1
Rollup merge of #116219 - compiler-errors:relate-alias-ty-with-variance, r=lcnr
Relate alias ty with variance

In the new solver, turns out that the subst-relate branch of the alias-relate predicate was relating args invariantly even for opaques, which have variance 💀.

This change is a bit more invasive, but I'd rather not special-case it [here](aeaa5c30e5/compiler/rustc_trait_selection/src/solve/alias_relate.rs (L171-L190)) and then have it break elsewhere. I'm doing a perf run to see if the extra call to `def_kind` is that expensive, if it is, I'll reconsider.

r? ``@lcnr``
2023-10-11 20:08:20 +02:00
..
dep_graph
hir Extend impl's def_span to include where clauses 2023-10-09 11:47:02 +00:00
hooks
infer
middle Rename Features::active_features. 2023-10-05 18:01:11 +11:00
mir Auto merge of #116454 - tmiasko:small-dominators, r=cjgillot 2023-10-08 12:38:14 +00:00
query
thir
traits
ty Rollup merge of #116219 - compiler-errors:relate-alias-ty-with-variance, r=lcnr 2023-10-11 20:08:20 +02:00
util
arena.rs
error.rs
lib.rs rustdoc: remove rust logo from non-Rust crates 2023-10-08 20:17:53 -07:00
lint.rs
macros.rs
metadata.rs
tests.rs
thir.rs Avoid emitting the non_exhaustive error if other errors already occurred 2023-10-11 12:49:57 +00:00
values.rs