Skip to content

nocapture attribute is missing on function arguments #25759

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions