Skip to content

Return-position noalias #385

Closed
rust-lang/rust
#106371
@RalfJung

Description

@RalfJung

LLVM supports the noalias attribute in return position, and Rust uses that for functions that return Box. However the semantics of that are mostly unclear I think -- this has very little to do with argument-position noalias.

I think in Stacked Borrows terms it corresponds to something like: give the return value a fresh tag, and remove all other tags from the stack.

Questions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions