Skip to content

Need custom discriminant tests in the pretty printer #1510

Closed
@nikomatsakis

Description

@nikomatsakis

Right now, they don't get pretty printed at all!

What needs to be done:

  • First, add a test or two to test/pretty with the pp-exact directive, as described in the wiki.
  • Second, modify the pretty printer in comp/syntax/print/pprust.rs to emit the custom discriminants if present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions