Skip to content

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

Closed
@ojeda

Description

@ojeda
Contributor
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.

Activity

added
C-bugCategory: This is a bug.
regression-untriagedUntriaged performance or correctness regression.
on Jun 21, 2023
added
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Jun 21, 2023
apiraino

apiraino commented on Jun 27, 2023

@apiraino
Contributor

Bisection seems to lead to commit d7948c8 but I am not sure / cant say if really related. The mentioned issue #93201 was opened before that commit was merged 🤔 @oli-obk @petrochenkov wdy?

oli-obk

oli-obk commented on Jun 27, 2023

@oli-obk
Contributor

This looks like another symptom of #93201

We'll likely keep regressing this by accident without a test. I don't know why #93201 was fixed between when it was reported and 1.68

added a commit that references this issue on Aug 6, 2023

Auto merge of rust-lang#114476 - Urgau:missing-dep-file-112898, r=oli…

ojeda

ojeda commented on Aug 6, 2023

@ojeda
ContributorAuthor

Thanks for fixing this @Urgau!

removed
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Participants

      @oli-obk@ojeda@apiraino@jyn514@rustbot

      Issue actions

        `-Zunpretty=expanded` does not emit `dep-info` anymore (1.68 -> 1.69) · Issue #112898 · rust-lang/rust