Skip to content

lambda syntax with no captures should make an extern fn, not &'static fn #10005

Closed
@thestinger

Description

@thestinger

It's silly to output the closure header and use wide pointer just for a bare function with no captures. An extern fn is implicitly coerced to &'static fn so this shouldn't cause any backwards compatibility issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-slowIssue: Problems and improvements with respect to performance of generated code.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions