这是indexloc提供的服务,不要输入任何密码
Skip to content

rustc does not always update the mtime of all its outputs #148948

@RalfJung

Description

@RalfJung

There are apparently situations involving incremental compilation where rustc will conclude that an output file (e.g. an rmeta file) is already fully up-to-date, and will just not do anything to it. However, build systems (including cargo) typically assume that they can use the mtime to figure out whether an output is up-to-date, so rustc not bumping the mtime of an output can lead to confusion.

We may want to fix rustc so that it always bumps the mtime of its outputs, even if they need no other changes. That should be quite cheap to do, and can avoid a lot of downstream head-scratching such as:

Metadata

Metadata

Assignees

No one assigned

    Labels

    I-prioritizeIssue: Indicates that prioritization has been requested for this issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions