Jonathan Brouwer
0f31e2c9ac
Rollup merge of #161548 - malezjaa:fix-drop-location-span-ice, r=Enselic
...
hir_typeck: Don't ICE on closures without drop location in closure capture lint
Resolves rust-lang/rust#156288 .
`drop_location_span` assumed that every closure had a valid drop location, which could cause an ICE for closures in unsupported contexts. This changes `drop_location_span` to return `Option<Span>`. If there is no valid drop location, the migration lint is not emitted because its drop-order diagnostic would be misleading. The span is computed before creating `MigrationLint` and stored there so it can be reused for the drop-order labels.
2026-09-15 09:32:32 +02:00
..
2026-08-16 10:01:47 +00:00
2026-06-09 13:16:26 +02:00
2026-08-04 18:44:28 +00:00
2026-08-24 10:03:03 +00:00
2026-07-13 10:54:53 +02:00
2026-07-13 10:54:53 +02:00
2026-07-15 11:50:42 -04:00
2025-12-25 12:27:17 +00:00
2026-07-13 10:54:53 +02:00
2025-12-17 20:47:47 +01:00
2025-12-17 20:47:47 +01:00
2025-12-17 20:47:47 +01:00
2025-12-25 12:27:17 +00:00
2026-07-13 10:54:53 +02:00
2026-08-16 18:00:38 +00:00
2026-08-03 21:50:31 +01:00
2026-07-13 10:54:53 +02:00
2026-08-14 09:04:25 +00:00
2026-04-09 11:36:46 +02:00
2026-07-20 18:24:17 +02:00
2026-08-24 10:03:03 +00:00
2025-12-25 12:27:17 +00:00
2026-09-07 08:56:08 +00:00
2026-08-14 09:04:25 +00:00
2026-08-16 18:00:38 +00:00
2026-08-24 10:03:03 +00:00
2026-08-16 18:00:38 +00:00
2026-08-24 10:03:03 +00:00
2026-08-16 18:00:38 +00:00
2026-09-07 08:56:08 +00:00
2025-10-23 22:15:34 +00:00
2026-09-07 08:56:08 +00:00
2025-10-23 22:15:34 +00:00
2026-03-09 18:51:25 -04:00
2026-06-27 08:51:24 +00:00
2026-08-14 09:04:25 +00:00
2026-08-16 18:00:38 +00:00
2026-08-16 18:00:38 +00:00
2026-06-27 08:51:24 +00:00
2026-08-14 09:04:25 +00:00
2026-08-14 09:04:25 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-08-14 09:04:25 +00:00
2026-06-27 08:51:24 +00:00
2026-09-07 08:56:08 +00:00
2026-06-27 08:51:24 +00:00
2026-08-24 10:03:03 +00:00
2026-06-28 09:39:21 +00:00
2026-09-11 17:08:12 +02:00
2026-07-20 18:24:17 +02:00
2026-06-28 09:39:21 +00:00
2026-03-09 18:51:25 -04:00
2026-06-28 09:39:21 +00:00
2026-06-28 09:39:21 +00:00
2026-06-28 09:39:21 +00:00
2026-06-28 09:39:21 +00:00
2026-07-20 18:24:17 +02:00
2026-06-28 09:39:21 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-08-16 18:00:38 +00:00
2026-08-24 10:03:03 +00:00
2026-08-24 10:03:03 +00:00
2026-08-24 10:03:03 +00:00
2026-08-16 10:01:47 +00:00
2026-08-16 10:01:47 +00:00
2026-09-07 08:56:08 +00:00
2026-08-16 10:01:47 +00:00
2026-08-16 10:01:47 +00:00
2026-08-16 10:01:47 +00:00
2026-09-07 08:56:08 +00:00
2026-06-27 08:51:24 +00:00
2026-08-16 10:01:47 +00:00
2026-08-16 10:01:47 +00:00
2026-08-16 10:01:47 +00:00
2026-08-24 10:03:03 +00:00
2026-08-24 10:03:03 +00:00
2026-06-27 08:51:24 +00:00
2026-09-07 08:56:08 +00:00
2026-09-07 08:56:08 +00:00
2026-05-02 21:07:24 +08:00
2026-08-24 10:03:03 +00:00
2026-09-07 08:56:08 +00:00
2026-09-07 08:56:08 +00:00
2026-09-07 08:56:08 +00:00
2026-09-07 08:56:08 +00:00
2026-09-07 08:56:08 +00:00
2026-09-07 08:56:08 +00:00
2026-09-11 17:08:12 +02:00
2025-12-17 21:25:19 +02:00