Skip to content

Unable to use "pretty" tests #111

Closed
Closed
@denzp

Description

@denzp

Tests with Mode::Pretty aren't currently working because:

error: pretty-printing failed in round 0 revision None
status: exit code: 101
command: "rustc" "-" "-Zunstable-options" "--unpretty" "expanded" "--target" "x86_64-unknown-linux-gnu" "-L" "/tmp/target-attr.stage-id.pretty.aux" "-L" "crate=../target/debug/" "-L" "dependency=../target/debug/deps/"

stdout:
------------------------------------------
------------------------------------------

stderr:
------------------------------------------
error: Unrecognized option: 'unpretty'
------------------------------------------

It caused by changes in Rust #47440.
Instead of -Zunstable-options --unpretty TYPE we need to use -Z unpretty=TYPE.

Should it be enough just to propagate the changes here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions