rust/compiler/rustc_middle
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
..
src Auto merge of #126150 - RalfJung:offset_of_slice, r=compiler-errors 2024-06-09 00:50:30 +00:00
Cargo.toml Make middle not rely on next_trait_solver 2024-06-06 07:49:47 -04:00
messages.ftl Port DeprecatedMacro to diag structs 2024-05-21 20:16:39 +00:00
README.md

For more information about how rustc works, see the rustc dev guide.