Skip to content

nocapture attribute is missing on function arguments #25759

@dotdash

Description

@dotdash

In a function like fn foo(x: &i32), the pointer is known not to be captured by the function because its lifetime doesn't allow it. We used to emit the nocapture attribute for such function arguments but don't do so anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationI-slowIssue: Problems and improvements with respect to performance of generated code.P-lowLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions