Skip to content

libsyntax: Consider using Names instead of most Idents in AST datastructures #28659

Closed
@petrochenkov

Description

@petrochenkov

Spawned from #28642
Similar to #6993

Idents are strictly necessary for PathSegment, PatIdent (hygienic identifiers) and ExprWhile, ExprLoop, ExprBreak, ExprAgain(hygienic labels). All other data structures in AST can live with Names most of the time and convert them into Idents with empty context in rare circumstances when Ident needs to be obtained from a non-hygienic name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-parserArea: The lexing & parsing of Rust source code to an AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions