about summary refs log tree commit diff
path: root/tests/ui/structs-enums/tuple-struct-construct.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-02-15 14:32:59 +0100
committerGitHub <noreply@github.com>2024-02-15 14:32:59 +0100
commit9fdab38877a510ec1c64915ccb4455356ee8e67b (patch)
tree54e0487cf6d8b500f9348ca0929e430601047951 /tests/ui/structs-enums/tuple-struct-construct.rs
parent6a4222b5119bce8c24e74dd3ad44006ce0c803e6 (diff)
parentbdbbf04a03311a79a193196f7ac64e5fd164af44 (diff)
downloadrust-9fdab38877a510ec1c64915ccb4455356ee8e67b.tar.gz
rust-9fdab38877a510ec1c64915ccb4455356ee8e67b.zip
Rollup merge of #120449 - udoprog:document-unsized-rc-arc-from-raw, r=m-ou-se
Document requirements for unsized {Rc,Arc}::from_raw

This seems to be implied due to these types supporting operation-less unsized coercions. Taken together with the [established behavior of a wide to thin pointer cast](https://github.com/rust-lang/reference/pull/1451) it would enable unsafe downcasting of these containers.

Note that the term "data pointer" is adopted from https://github.com/rust-lang/rfcs/pull/3559

See also this [internals thread](https://internals.rust-lang.org/t/can-unsafe-smart-pointer-downcasts-be-correct/20229/2).
Diffstat (limited to 'tests/ui/structs-enums/tuple-struct-construct.rs')
0 files changed, 0 insertions, 0 deletions