Skip to content

Pretty-print in place #1282

Closed
Closed
@graydon

Description

@graydon

The pp currently prints to stdout. We should support a mode wherein it does an in-memory pp, compares with the input, and writes back to the input file if there was a change. This is done by hand in our makefile now but if we want our users to use the pp we should make it as easy as possible to invoke.

This is mostly a driver bug and should be quite easy to knock out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: rustc_driver that ties everything together into the `rustc` compilerA-prettyArea: Pretty printing (including `-Z unpretty`)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions