Skip to content

mark &mut parameters as noalias #6350

Closed

Description

@thestinger

&mut is guaranteed to never alias as a property of the type, so this can safely be used in function parameter annotations. I don't think there will be much (if any) broken unsafe code to fix.

This won't replace the need for an alias analysis pass, but it's a step towards that.

Activity

  1. added a commit that references this issue on May 26, 2013
    f254d11
  2. thestinger commented on May 26, 2013

    @thestinger
    ContributorAuthor

    Fixed by #6742.

  3. added a commit that references this issue on Aug 21, 2026
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.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions