Skip to content

Find some way to expose closure lifetime in Rust return type. #12

@Xaeroxe

Description

@Xaeroxe

Closures are allowed to reference data that may be dropped before the closure itself is dropped currently. This will result in undefined behavior.

This can't be meaningfully prevented in C++, but we aren't even preventing this in Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions