Skip to content

Add the rest of Rust syntax behind a feature flag (off by default) #4

Closed
@dtolnay

Description

@dtolnay

Parsing structs and enums is enough for Macros 1.1 but parsing all of Rust may be useful for other things.

Items

  • ExternCrate
  • Use
  • Static
  • Const
  • Fn
  • Mod
  • ForeignMod
  • Ty
  • Enum (enabled by default)
  • Struct (enabled by default)
  • Union
  • Trait
  • DefaultImpl
  • Impl
  • Mac

Expressions

  • Box
  • Vec
  • Call
  • MethodCall
  • Tup
  • Binary
  • Unary
  • Lit
  • Cast
  • Type
  • If
  • IfLet
  • While
  • WhileLet
  • ForLoop
  • Loop
  • Match
  • Closure
  • Block
  • Assign
  • AssignOp
  • Field
  • TupField
  • Index
  • Range
  • Path
  • AddrOf
  • Break
  • Continue
  • Ret
  • Mac
  • Struct
  • Repeat
  • Paren
  • Try

Statements

  • Local
  • Item
  • Expr
  • Semi
  • Mac

Patterns

  • Wild
  • Ident
  • Struct
  • TupleStruct
  • Path
  • Tuple
  • Box
  • Ref
  • Lit
  • Range
  • Slice
  • Mac

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions