about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-06-09 00:50:30 +0000
committerbors <bors@rust-lang.org>2024-06-09 00:50:30 +0000
commita595f3218e1204bad6f4d3451d318b2c0c56d570 (patch)
tree2c3c162f3e7242ecdbb695b5673a85505d4c6a01 /compiler/rustc_codegen_gcc/src
parent6c4755dcb7c3bf5505614e8adb19d701f9dbb949 (diff)
parenteb584a23bfba55512af0a223cf4133b806ede178 (diff)
downloadrust-a595f3218e1204bad6f4d3451d318b2c0c56d570.tar.gz
rust-a595f3218e1204bad6f4d3451d318b2c0c56d570.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
0 files changed, 0 insertions, 0 deletions