Skip to content

Dynamically select alignment of a dyn Trait local value #71695

Closed
@pnkfelix

Description

@pnkfelix

Spawned off of #71416

Specifically this comment: #71416 (comment)

quoted here:

Unlike the other unsound features, this is one where we don't even have a plan for how to soundly implement it. Not sure how much I like keeping that around.

Can't we do something dynamic where we allocate size + (align - 1) and align it ourselves?
Also, this has been discussed before, hasn't it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    F-unsized_locals`#![feature(unsized_locals)]`P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions