dianne
36ff87e90e
EUV: fix place of deref pattern's interior's scrutinee
...
The place previously used here was that of the temporary holding the
reference returned by `Deref::deref` or `DerefMut::deref_mut`. However,
since the inner pattern of `deref!(inner)` expects the deref-target type
itself, this would ICE when that type was inspected (e.g. by the EUV
case for slice patterns). This adds a deref projection to fix that.
Since current in-tree consumers of EUV (upvar inference and clippy)
don't care about Rvalues, the place could be simplified to
`self.cat_rvalue(pat.hir_id, self.pat_ty_adjusted(subpat)?)` to save
some cycles. I personally find EUV to be a bit fragile, so I've opted
for pedantic correctness. Maybe a `HACK` comment would suffice though?
2025-03-13 01:01:26 -07:00
..
2024-09-24 13:45:58 +02:00
2025-02-25 16:56:04 +00:00
2025-03-13 01:01:26 -07:00
2024-07-04 02:02:21 +00:00
2025-02-20 02:39:28 +00:00
2024-12-07 13:37:35 +01:00
2025-03-11 12:05:02 +00:00
2024-09-23 02:12:53 +03:00
2024-09-23 02:12:53 +03:00
2024-06-13 06:16:12 +00:00
2024-06-13 06:16:12 +00:00
2024-05-20 19:55:59 -07:00
2024-05-20 19:55:59 -07:00
2024-02-16 20:02:50 +00:00
2025-02-17 09:30:40 +11:00
2024-03-03 13:10:15 +01:00
2024-05-20 19:55:59 -07:00
2024-11-23 08:57:25 -07:00
2024-02-16 20:02:50 +00:00
2024-05-20 19:55:59 -07:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +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-08-19 21:39:57 +02:00
2024-02-16 20:02:50 +00:00
2024-08-03 07:57:31 -04:00
2024-08-03 07:57:31 -04:00
2024-02-16 20:02:50 +00:00
2024-02-09 15:43:08 -03:00
2024-02-09 15:43:08 -03:00
2024-12-04 20:29:36 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-04-29 14:53:38 +02:00
2024-11-23 08:57:25 -07:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-01-29 15:45:13 +00:00
2024-12-04 20:29:36 +00:00
2024-12-04 20:29:36 +00:00
2024-02-16 20:02:50 +00:00
2024-06-13 06:14:32 +00:00
2024-06-13 06:14:32 +00:00
2024-05-15 16:55:54 -04:00
2024-04-15 23:27:22 -04:00
2024-11-22 11:12:15 -08:00
2024-03-27 11:20:28 -04:00
2024-07-04 02:02:21 +00:00
2024-03-22 20:53:42 -04:00
2024-03-22 20:53:42 -04:00
2024-03-22 20:53:42 -04:00
2024-05-20 19:55:59 -07:00
2024-05-20 19:55:59 -07:00
2024-05-20 19:55:59 -07:00
2024-05-20 19:55:59 -07:00
2024-12-04 20:29:36 +00:00
2024-02-16 20:02:50 +00:00
2024-12-04 20:29:36 +00:00
2025-02-05 11:28:24 +00:00
2025-02-05 11:28:24 +00:00
2024-02-16 20:02:50 +00:00
2025-02-14 00:44:10 -08:00
2025-02-14 00:44:10 -08:00
2025-02-10 20:21:39 +00:00
2025-01-08 07:34:59 +00:00
2024-03-19 12:28:23 +08:00
2024-03-19 12:28:23 +08:00
2025-02-14 00:44:10 -08:00
2024-03-19 12:28:23 +08:00
2024-03-19 12:28:23 +08:00
2025-02-14 00:44:10 -08:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2024-02-08 08:10:43 +00:00
2024-11-23 08:57:25 -07:00
2025-02-10 20:21:39 +00:00
2024-06-25 10:00:30 +08:00
2024-08-26 18:30:15 -04:00
2024-05-02 19:42:31 -04:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-11-21 18:40:36 +08:00
2024-11-21 18:40:36 +08:00
2024-02-16 20:02:50 +00:00
2024-11-22 11:12:15 -08:00
2024-11-22 11:12:15 -08:00
2024-02-16 20:02:50 +00:00
2025-02-10 20:21:39 +00:00
2025-02-10 20:21:39 +00:00
2024-02-16 20:02:50 +00:00
2024-07-11 00:18:47 +08:00
2024-07-11 00:18:47 +08:00
2025-01-08 00:13:43 +00:00
2025-01-08 00:13:43 +00:00
2025-01-08 00:10:16 +00:00
2025-01-08 00:10:16 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-06-13 06:14:32 +00:00
2024-06-13 06:14:32 +00:00