Skip to content

Add async_ and const_ field in FnSig #111

@zjp-CN

Description

@zjp-CN

FnSig currently is a reflection of internal FnSig, so no function modifier information like asyncness or constness.

To obtain the asyncness, TyCtxt::asyncness is available. (Same for constness.)

However, adding extra fields will make internal<->stable bridge more fragile, like RustcInternal impl on FnSig needs to trim these fields, and Stable impl on FnSig needs to query more to piece them together.

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