Skip to content

Tracking issue for cache-messages #6986

Closed

Description

@ehuss

Implementation PR: #6933
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#cache-messages

Summary
Caches the output from rustc so that future runs can redisplay previous warnings.

cargo +nightly check -Z cache-messages

This also fixes some interleaved output from parallel compilers, like #6848.

Unresolved issues

  • short messages are not supported. Either the rustc JSON output needs to include an additional field with the short rendered form, or cargo and rustc need to share a diagnostics rendering library and the JSON format extended to support that.
  • rustdoc does not support --json-rendered=termcolor, so its output is currently uncolored.
  • --json-rendered needs to be stabilized (or redesigned, see first point).
  • A major goal of properly redisplaying clippy warnings is not yet finished. Clippy shares the same fingerprint with cargo check. The fingerprint or metadata hash needs to include that clippy is in use to fix this. Also, the clippy wrapper needs to only be applied to member crates, not registry dependencies.

Activity

  1. added a commit that references this issue on Oct 15, 2019
    b03182a
  2. apiraino commented on Oct 15, 2019

    @apiraino

    @ehuss now that #6933 and #7450 are merged, is there another main issue to track on this topic or it's done (i.e. 🍾)?

    Thanks!

  3. ehuss commented on Oct 15, 2019

    @ehuss
    ContributorAuthor

    It should be done. It should be in nightly the day after rust-lang/rust#65445 lands.

  4. BatmanAoD commented on Oct 15, 2019

    @BatmanAoD
    Contributor

    🎉

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

    A-cache-messagesArea: caching of compiler messagesC-tracking-issueCategory: A tracking issue for something unstable.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions