Files
rust/tests/crashes
bors 4a9d5368df Auto merge of #156977 - RalfJung:interpret-opsem-inhabited, r=WaffleLapkin
interpret: properly check for inhabitedness of nested references



This implements the opsem from the ongoing FCP in https://github.com/rust-lang/unsafe-code-guidelines/issues/413. The bit we were previously missing is that transmuting a `&&!`  into existence was not caught as being immediate UB -- only the `&!` case behaved as expected.

I did not adjust the layout computation because when we compute the layout of `&T`, we cannot know the layout of `T` (as that might be recursive).

r? @oli-obk
2026-07-17 01:35:23 +00:00
..
2025-12-25 12:27:17 +00:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-01-25 23:40:35 +01:00
…
…
2026-07-13 10:54:53 +02:00
…
…
2025-06-11 15:30:15 +01: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
2025-09-26 15:37:19 -07:00
…
…
2026-07-13 10:54:53 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-29 11:04:50 +10:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-07-13 10:54:53 +02:00
…
…
…
2025-01-04 14:38:06 +01:00
2025-01-04 14:38:06 +01:00
2025-01-04 14:38:06 +01:00
2025-01-12 10:11:29 +01:00
2025-02-09 10:40:18 +01:00
2025-02-09 10:40:18 +01:00
2025-02-09 10:40:18 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-03-08 20:13:07 +01:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-12-25 12:27:17 +00:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-01 17:04:37 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2025-05-18 17:25:34 +02:00
2026-03-09 18:51:25 -04:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +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-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-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-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00:00
2026-06-27 08:51:24 +00: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.