Files
rust/tests/ui
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](https://github.com/rust-lang/rust/blob/aeaa5c30e5c9041264a2e8314b68ad84c2dc3169/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
..
2023-10-06 11:02:11 +00:00
2023-10-08 10:06:17 +00:00
2023-09-19 12:48:40 +00:00
2023-10-08 10:06:17 +00:00
2023-09-22 18:57:27 +03:00
2023-10-05 01:04:41 +00:00
2023-09-21 17:31:25 +02:00
2023-10-04 08:01:11 +08:00
2023-10-08 10:06:17 +00:00
2023-05-30 13:03:40 +02:00
2023-10-04 08:01:11 +08:00
2023-10-04 18:12:20 +11:00
2023-07-17 22:06:32 +00:00
2023-09-19 12:48:40 +00:00
2023-09-06 12:09:29 +03:00
2023-09-13 15:00:31 +00:00
2023-10-08 10:06:17 +00:00
2023-09-23 13:47:30 +00:00
2023-10-08 10:06:17 +00:00
2023-10-08 10:06:17 +00:00
2023-10-11 04:55:55 +02:00
2023-09-13 15:00:31 +00:00
2023-08-28 17:47:37 -03:00
2023-10-08 10:06:17 +00:00
2023-04-29 13:01:46 +01:00
2023-10-09 22:48:10 +00:00
2023-07-29 11:47:26 +02:00
2023-10-11 04:55:55 +02:00
2023-10-08 10:06:17 +00:00
2023-10-05 01:04:41 +00:00
2023-04-03 09:24:11 +02:00
2023-08-06 13:34:53 +00:00
2023-08-14 16:57:51 -07:00
2023-10-02 23:14:29 +00:00
2023-10-08 10:06:17 +00:00
2023-03-29 18:04:44 -04:00
2023-08-15 00:57:18 +08:00
2023-09-18 17:29:13 +01:00
2023-10-05 01:04:41 +00:00
2023-08-26 19:25:46 +00:00
2023-04-29 13:01:46 +01:00
2023-10-05 01:04:41 +00:00
2023-10-08 10:06:17 +00:00
2023-03-08 00:00:18 +00:00
2023-04-13 22:10:26 -05:00
2023-04-13 22:10:26 -05:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-03-08 00:00:18 +00:00
2023-03-08 00:00:18 +00:00