Skip to content

port the "autoref-arg" code used in overloaded operators to use the ptr adjustment table #3548

Closed
@nikomatsakis

Description

@nikomatsakis

We have this nice table in the tcx called adjustments that's supposed to track when an expression is being auto-ref'd or auto-deref'd. It would make borrowck, trans, and other pieces of code that are concerned with this "just work". But it's not being used for overloaded operators right now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-type-systemArea: Type systemC-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions