Skip to content

Commit

Permalink
Rollup merge of #120449 - udoprog:document-unsized-rc-arc-from-raw, r…
Browse files Browse the repository at this point in the history
…=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](rust-lang/reference#1451) it would enable unsafe downcasting of these containers.

Note that the term "data pointer" is adopted from rust-lang/rfcs#3559

See also this [internals thread](https://internals.rust-lang.org/t/can-unsafe-smart-pointer-downcasts-be-correct/20229/2).
  • Loading branch information
GuillaumeGomez committed Feb 15, 2024
2 parents e011d6c + c03015b commit 2c54404
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 2c54404

Please sign in to comment.