Skip to content

RUSTC_WRAPPER is applied even after being unset #9553

Open
@jplatte

Description

@jplatte

Problem

Recently, I ran cargo bloat --time on one a Cargo project. Afterwards, I noticed there are now json-time {...} output lines when running other cargo commands (check for example). It looks like these are how cargo-bloat collects the compilation times (https://github.com/RazrFalcon/cargo-bloat/blob/ddbb5f55088eb7e28c0cc80e7a1fdfb1310c19b5/src/main.rs#L399), through a RUSTC_WRAPPER executable.

I have verified that at the time I run cargo check, no RUSTC_WRAPPER is set so I'm assuming it's being cached by Cargo somewhere.

Steps

  1. Install cargo-bloat
  2. Run cargo bloat --time on some Cargo project
  3. Run cargo check

Notes

Tested with both cargo 1.53.0-beta (4369396ce 2021-04-27) and cargo 1.54.0-nightly (0cecbd673 2021-06-01).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cache-messagesArea: caching of compiler messagesC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions