Files
rust/tests/ui/impl-trait
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-27 15:19:08 -04:00
2024-02-26 10:57:46 +01:00
2024-02-26 10:57:46 +01:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2023-09-21 08:17:58 +02:00
2024-02-07 10:42:01 +08:00
2024-06-13 10:41:52 +00:00
2024-06-13 10:41:52 +00:00
2024-04-08 15:00:03 +00:00
2024-06-21 11:57:24 +00:00
2024-02-07 10:42:01 +08:00
2023-06-26 19:14:49 +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