Trevor Gross
b5771e7e0d
Rollup merge of #127664 - compiler-errors:precise-capturing-better-sugg-apit, r=oli-obk
...
Fix precise capturing suggestion for hidden regions when we have APITs
Suggests to turn APITs into type parameters so they can be named in precise capturing syntax for hidden type lifetime errors. We also note that it may change the API.
This is currently done via a note *and* a suggestion, which feels a bit redundant, but I wasn't totally sure of a better alternative for the presentation.
Code is kind of a mess but there's a lot of cases to consider. Happy to iterate on this if you think the approach is too messy.
Based on #127619 , only the last commit is relevant.
r? oli-obk
Tracking:
- https://github.com/rust-lang/rust/issues/123432
2024-07-17 19:53:26 -05:00
..
2024-06-04 21:06:29 -04:00
2024-07-17 19:08:37 +08:00
2024-06-27 15:19:08 -04:00
2024-07-17 10:52:13 -04:00
2024-03-28 06:41:22 +00:00
2024-06-26 16:01:45 +00:00
2024-03-12 06:03:43 +00:00
2024-03-12 06:03:43 +00:00
2024-06-12 15:32:25 +00:00
2024-06-12 15:32:25 +00:00
2024-02-26 10:57:46 +01:00
2024-02-26 10:57:46 +01:00
2024-03-11 17:19:37 +00:00
2024-03-10 21:18:41 -04:00
2024-06-17 22:35:25 -04:00
2024-06-17 22:35:25 -04:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +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-04-08 15:08:06 +00:00
2024-05-06 16:04:57 +00:00
2024-04-08 15:00:26 +00:00
2024-06-11 08:08:25 +00:00
2024-06-12 12:34:47 +00:00
2024-03-26 09:26:23 +00:00
2024-03-26 09:26:23 +00:00
2024-07-11 12:23:44 +10:00
2024-07-04 22:05:00 +08:00
2024-07-04 22:05:00 +08:00
2024-07-12 03:02:57 +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-03-20 13:00:34 -04:00
2024-03-20 13:00:34 -04:00
2024-06-12 08:53:59 +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-03-22 08:27:14 +01:00
2024-03-22 08:27:14 +01: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-07-12 03:02:57 +00:00
2024-06-26 16:01:45 +00:00
2024-06-26 16:01:45 +00:00
2024-07-05 20:58:33 +00:00
2024-07-12 03:02:57 +00:00
2024-03-08 19:08:13 +00:00
2024-07-06 21:00:30 +08:00
2024-06-27 15:19:08 -04:00
2024-07-11 11:00:15 +00:00
2024-07-11 11:00:15 +00:00
2024-05-20 20:16:29 -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-06-12 08:53:59 +00:00
2024-06-19 08:29:17 +00:00
2024-04-24 08:05:29 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:53 +00:00
2024-06-13 10:41:53 +00:00
2024-06-13 10:41:53 +00:00
2024-06-13 10:41:53 +00:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:53 +00:00
2024-06-13 10:41:53 +00:00
2024-07-05 11:59:54 -04:00
2024-07-05 11:59:54 -04:00
2024-04-08 15:00:03 +00:00
2024-06-27 15:19:08 -04:00
2024-05-29 09:27:07 +00:00
2024-05-29 09:27:07 +00:00
2024-03-27 14:02:16 +00:00
2024-06-12 08:53:59 +00:00
2024-06-21 11:57:24 +00:00
2024-03-20 13:00:34 -04:00
2024-07-05 19:40:09 +00:00
2024-06-11 08:19:19 +00:00
2024-06-11 08:19:19 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-03-23 12:01:39 +01:00
2024-03-23 12:01:39 +01:00
2024-04-24 08:05:29 +00:00
2024-04-24 08:05:29 +00:00
2024-06-13 10:41:52 +00:00
2024-06-12 08:53:59 +00:00
2024-06-12 08:53:59 +00:00
2024-07-05 20:58:33 +00:00
2024-06-11 08:08:25 +00:00
2024-06-11 08:08:25 +00:00
2024-03-10 21:18:41 -04:00
2024-02-29 11:08:27 +11:00
2024-02-29 11:08:27 +11:00
2024-03-20 13:00:34 -04:00
2024-03-20 13:00:34 -04:00
2024-07-06 23:29:58 +08:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-12 08:53:59 +00:00
2024-03-10 21:18:41 -04:00
2024-06-12 08:53:59 +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-06-12 08:53:59 +00:00
2024-06-12 08:53:59 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:40:29 +00:00
2024-06-19 08:40:29 +00:00
2024-06-19 08:40:29 +00:00
2024-06-19 08:40:29 +00:00
2024-06-19 08:40:29 +00:00
2024-06-19 08:40:29 +00:00
2024-06-19 08:40:29 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 08:28:31 +00:00
2024-06-19 04:41:56 +00:00
2024-06-19 04:41:56 +00:00
2024-02-27 15:57:49 +01:00
2024-02-27 15:57:49 +01:00
2024-02-19 23:54:49 +00:00
2024-07-05 20:58:33 +00:00