Skip to content

mark &mut parameters as noalias #6350

Closed
@thestinger

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.

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