Skip to content

trans: Collector misses closure drop-glue generated via fn-once-shims #38810

Closed
@michaelwoerister

Description

@michaelwoerister

FnOnce shims can introduce a drop of ClosureType, but the translation item collector only ever gets to see the &ClosureType which does not require drop-glue. This leads to errors because the desired drop-glue doesn't get instantiated.

@arielb1 Do I remember correctly that you were looking into FnOnce shims at the MIR level? That might help here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-MIRArea: Mid-level IR (MIR) - https://blog.rust-lang.org/2016/04/19/MIR.html

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions