Skip to content

-Zunpretty=expanded does not emit dep-info anymore (1.68 -> 1.69) #112898

Closed
@ojeda

Description

@ojeda
rm -f x.d && echo 'fn main() {}' |
    RUSTC_BOOTSTRAP=1 rustup run 1.68.2 rustc - --emit=dep-info=x.d -Zunpretty=expanded >/dev/null &&
    cat x.d
x.d: 
rm -f x.d && echo 'fn main() {}' |
    RUSTC_BOOTSTRAP=1 rustup run 1.69.0 rustc - --emit=dep-info=x.d -Zunpretty=expanded >/dev/null &&
    cat x.d
cat: x.d: No such file or directory

Related: #93201 (i.e. having expanded as an actual --emit would be nice).

We use -Zunpretty=expanded in the kernel to provide the expanded output in .rsi outputs/targets. The dependency information is not critical, but the change made our Make target fail (so we need a change on the kernel side), and it would be nice nevertheless to have the dependency information (assuming it is accurate), e.g. we also use it for similar outputs like .ll and .s.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.regression-untriagedUntriaged performance or correctness regression.requires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions