bors
1b3fba066c
Auto merge of #124203 - lukas-code:delete-deleting-caches, r=compiler-errors
...
fix normalizing in different `ParamEnv`s with the same `InferCtxt`
This PR changes the key of the projection cache from just `AliasTy` to `(AliasTy, ParamEnv)` to allow normalizing in different `ParamEnv`s without resetting caches. Previously, normalizing the same alias in different param envs would always reuse the cached result from the first normalization, which is incorrect if the projection clauses in the param env have changed.
Fixing this bug allows us to get rid of `InferCtxt::clear_caches`, which was only used by the `AutoTraitFinder`, because it requires normalizing in different param envs.
r? `@fmease`
2024-04-21 19:05:08 +00:00
..
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-21 18:04:50 +02:00
2024-03-20 13:00:34 -04:00
2024-02-16 20:02:50 +00:00
2024-04-20 11:39:43 -04:00
2024-03-28 06:41:22 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-12 06:03:43 +00:00
2024-03-12 06:03:43 +00:00
2024-02-16 20:02:50 +00:00
2024-02-26 10:57:46 +01:00
2024-02-26 10:57:46 +01:00
2024-01-30 21:28:18 +00:00
2024-02-16 20:02:50 +00:00
2024-03-11 17:19:37 +00:00
2024-03-10 21:18:41 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-01-24 02:53:15 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-28 06:41:22 +00:00
2024-03-28 06:41:22 +00:00
2024-03-28 06:41:22 +00:00
2024-03-26 09:26:23 +00:00
2024-03-26 09:26:23 +00:00
2024-03-26 09:26:23 +00:00
2024-02-16 20:02:50 +00:00
2024-04-08 15:08:06 +00:00
2024-02-16 20:02:50 +00:00
2024-01-24 16:57:15 +00:00
2024-01-24 16:57:15 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-01-30 21:28:18 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-08 15:00:26 +00:00
2024-02-16 20:02:50 +00:00
2024-03-27 14:02:15 +00:00
2024-03-26 09:26:23 +00:00
2024-03-26 09:26:23 +00:00
2024-03-26 09:26:23 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-07 10:42:01 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-07 00:25:56 +02:00
2024-04-07 00:25:56 +02:00
2024-04-07 00:48:47 +02:00
2024-04-07 00:48:47 +02:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-20 13:00:34 -04:00
2024-03-20 13:00:34 -04:00
2024-01-09 21:08:16 +00:00
2024-02-16 20:02:50 +00:00
2024-02-28 09:54:44 +00:00
2024-02-28 09:54:44 +00:00
2024-02-28 09:54:44 +00:00
2024-02-16 20:02:50 +00:00
2024-03-22 08:27:14 +01:00
2024-03-22 08:27:14 +01:00
2024-02-16 20:02:50 +00:00
2024-01-09 21:08:16 +00:00
2024-03-27 14:02:15 +00:00
2024-03-20 17:29:58 +00:00
2024-03-20 17:29:58 +00:00
2024-03-20 17:29:58 +00:00
2024-03-20 17:29:58 +00:00
2024-03-28 06:00:26 +00:00
2024-03-28 06:00:26 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-08 19:08:13 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-01-30 21:28:18 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-01-11 09:52:25 +00:00
2024-01-11 09:52:25 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-08 08:10:43 +00:00
2024-02-08 08:10:43 +00:00
2024-02-16 20:02:50 +00:00
2024-04-04 14:53:31 +00:00
2024-04-04 14:25:45 +00:00
2024-04-08 15:00:03 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-08 15:00:26 +00:00
2024-04-08 15:00:26 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-27 14:02:16 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-18 16:08:58 +00:00
2024-02-16 20:02:50 +00:00
2024-02-14 11:00:30 +00:00
2024-02-14 11:00:30 +00:00
2024-02-16 20:02:50 +00:00
2024-03-20 13:00:34 -04:00
2024-03-20 13:00:34 -04:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-04 07:47:22 +02:00
2024-04-04 07:47:22 +02:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-23 12:01:39 +01:00
2024-03-23 12:01:39 +01:00
2024-02-16 20:02:50 +00:00
2024-01-08 20:30:24 +00:00
2024-01-08 20:30:24 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-03-10 21:18:41 -04:00
2024-02-16 20:02:50 +00:00
2024-02-29 11:08:27 +11:00
2024-02-29 11:08:27 +11:00
2024-02-16 20:02:50 +00:00
2024-03-20 13:00:34 -04:00
2024-03-20 13:00:34 -04:00
2024-02-16 20:02:50 +00:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-03-10 21:18:41 -04:00
2024-02-16 20:02:50 +00:00
2024-02-07 10:42:01 +08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-27 15:57:49 +01:00
2024-02-27 15:57:49 +01:00
2024-02-16 20:02:50 +00:00
2024-02-19 23:54:49 +00:00
2024-03-07 14:26:31 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00