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-01 10:31:32 -04:00
2024-06-08 14:48:32 +02:00
2024-06-06 07:49:47 -04:00
2024-05-26 20:04:05 -04:00