Files
rust/tests/crashes
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-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
…
…
2025-12-25 12:27:17 +00:00
…
…
…
…
…
…
…
…
…
…
2026-07-13 10:54:53 +02: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-07-13 10:54:53 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-08-14 09:04:25 +00: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
2026-09-07 08:56:08 +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-09-07 08:56:08 +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-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-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

Documentation on crash tests is at https://rustc-dev-guide.rust-lang.org/tests/compiletest#crash-tests.

Alternatively, you can build the documentation from this repository:

mdbook serve --open src/doc/rustc-dev-guide

The documentation will then be available at http://localhost:3000/tests/compiletest.html#crash-tests.