rust/compiler
bors a595f3218e Auto merge of #126150 - RalfJung:offset_of_slice, r=compiler-errors
offset_of: allow (unstably) taking the offset of slice tail fields

Fields of type `[T]` have a statically known offset, so there is no reason to forbid them in `offset_of!`. This PR adds the `offset_of_slice` feature to allow them.

I created a tracking issue: https://github.com/rust-lang/rust/issues/126151.
2024-06-09 00:50:30 +00:00
..
2024-06-06 20:26:27 -05:00
2024-06-06 20:54:51 -05:00
2024-06-06 20:27:25 -05:00
2024-06-05 22:25:42 +01:00