Skip to content

Introduce a crate for common AST definitions #66149

Closed
@Centril

Description

@Centril

Context: #65884 (comment)

For example:

  • Mutability is shared between AST / HIR / ...
  • CaptureBy and CaptureClause fill the same role.
  • Constness
  • Unsafety
  • Movability and GeneratorMovability (?)
  • BindingMode

Suggested crate name rustc_ast_common.

cc @oli-obk

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions