Files
rust/tests/ui/consts
Jonathan Brouwer 62a3eab283 Rollup merge of #154093 - RalfJung:validity-maybedangling, r=WaffleLapkin
const validity checking: do not recurse to references inside MaybeDangling

This arguably should be allowed, but we currently reject it:
```rust
#![feature(maybe_dangling)]
use std::mem::MaybeDangling;

const X: MaybeDangling<&bool> = unsafe { std::mem::transmute(&5u8) };
```

r? @WaffleLapkin
2026-03-23 20:18:34 +01:00
..
2026-02-22 20:20:33 +01:00
2025-11-02 20:12:26 +00:00
2026-01-18 22:41:00 +01:00
2025-10-03 13:30:47 -04:00
2024-01-13 12:46:58 -05:00
2024-09-15 09:51:32 +02:00
2024-08-18 19:46:53 +02:00
2025-11-02 20:12:26 +00:00
2025-02-27 20:02:25 +00:00
2025-07-21 12:49:45 +03:00
2023-11-12 04:33:19 +00:00
2025-12-02 18:25:13 +00:00
2025-09-12 12:39:31 +03:00
2024-02-25 12:03:48 +01:00
2025-11-02 20:12:26 +00:00
2026-01-18 22:41:00 +01:00
2024-04-21 15:43:43 -03:00
2024-04-21 15:43:43 -03:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2025-11-02 20:12:26 +00:00
2025-11-02 20:12:26 +00:00
2025-07-13 13:50:01 +00:00
2023-07-27 15:51:02 +00:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2024-12-25 10:36:32 +01:00
2025-07-21 09:11:21 +00:00
2024-10-07 16:29:52 +00:00
2025-11-02 20:12:26 +00:00
2025-08-05 19:34:46 +05:00
2024-09-15 09:51:32 +02:00
2025-02-23 23:11:00 +07:00
2025-09-12 14:45:12 -04:00
2026-01-18 22:41:00 +01:00
2023-01-15 19:46:20 +00:00
2025-06-13 09:20:48 +02:00
2025-06-13 09:20:48 +02:00
2026-01-18 22:41:00 +01:00
2026-01-18 22:41:00 +01:00
2025-01-06 17:54:59 +01:00
2025-01-06 17:54:59 +01:00
2026-01-18 22:41:00 +01:00
2025-10-30 08:05:37 +00:00
2024-09-14 18:07:06 +02:00