about summary refs log tree commit diff
path: root/tests/rustdoc-ui/coverage/doc-examples.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-07 15:22:03 +0000
committerbors <bors@rust-lang.org>2022-12-07 15:22:03 +0000
commit6e8a54d0f68702cf7981c8299357838eb0f4d5b2 (patch)
tree28abe627bdd14ae3ee15462d051c29d1645c8106 /tests/rustdoc-ui/coverage/doc-examples.rs
parentdf07c8fafa78ace4c4d2ded82d561f76a35e0ade (diff)
parent948a8f030b51543aedf72188cf8d3ab03d5a3025 (diff)
downloadrust-6e8a54d0f68702cf7981c8299357838eb0f4d5b2.tar.gz
rust-6e8a54d0f68702cf7981c8299357838eb0f4d5b2.zip
Auto merge of #13490 - HKalbasi:layout, r=jonas-schievink
Compute data layout of types

cc #4091

Things that aren't working:
* Closures
* Generators (so no support for `Future` I think)
* Opaque types
* Type alias and associated types which may need normalization

Things that show wrong result:
* ~Enums with explicit discriminant~
* SIMD types
* ~`NonZero*` and similar standard library items which control layout with special attributes~

At the user level, I didn't put much work, since I wasn't confident about what is the best way to present this information. Currently it shows size and align for ADTs, and size, align, offset for struct fields, in the hover, similar to clangd. I used it some days and I feel I liked it, but we may consider it too noisy and move it to an assist or command.
Diffstat (limited to 'tests/rustdoc-ui/coverage/doc-examples.rs')
0 files changed, 0 insertions, 0 deletions