Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

everybody_loops is no more #44

@netzdoktor

Description

@netzdoktor

I just build cargo-breaking from the source, and it failed to run on a very simple crate. The error is:

Caused by:
       Compiling XXXXX v1.3.1 (/XXXX)
    error: argument to `unpretty` must be one of `normal`, `identified`, `expanded`, `expanded,identified`, `expanded,hygiene`, `ast-tree`, `ast-tree,expanded`, `hir`, `hir,identified`, `hir,typed`, `hir-tree`, `thir-tree`, `mir` or `mir-cfg`; got everybody_loops
    
    error: could not compile `XXXXX` due to previous error

The root cause is here (in a call to cargo):

.args(&["-Z", "unpretty=everybody_loops"])

In rust-lang/rust#93913, this option was removed. Pull request rust-lang/rust#94669 suggests that thir-tree is a replacement. When I changed that locally in my cargo-breaking build, it started working again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions