8000 Arc doesn't allow storing unsized (trait objects) · Issue #147 · tokio-rs/loom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Arc doesn't allow storing unsized (trait objects) #147
Closed
@seanmonstar

Description

@seanmonstar

The loom::sync::Arc type needs to add T: ?Sized to allow Arc<dyn Any>.

It's mostly just adding bounds, but it does mean into_raw and from_raw need to be carefully adjusted, since ?Sized types need to be the last field on Inner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0