{{ message }}
feat(trim-paths): honor workspace prefix override from env - #17349
Merged
Conversation
Collaborator
epage
approved these changes
Aug 11, 2026
`__CARGO_RUSTC_BOOTSTRAP_WS_REMAP` will be added in the next commit in order to support rustc bootstrap's custom remap prefix.
`__CARGO_RUSTC_BOOTSTRAP_WS_REMAP` is an internal contract with rustc bootstrap, which needs workspace sources remapped to `/rustc/<sha>`. The `to` prefix participates in the fingerprint, since it is embedded in artifacts. See <rust-lang#17309>.
weihanglo
force-pushed
the
trim-paths-ws-prefix
branch
from
August 11, 2026 03:37
f0b5e19 to
53f5445
Compare
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Aug 11, 2026
Member
Author
rust-bors Bot
pushed a commit
to rust-lang/rust
that referenced
this pull request
Aug 11, 2026
Update cargo submodule 10 commits in b07e5a08651da80108eb65d7dc769ee04589f9bf..eb98b54bc9f3c74519f43d066cb3fd02ebc88df0 2026-08-07 21:51:16 +0000 to 2026-08-11 16:00:29 +0000 - feat(trim-paths): honor workspace prefix override from env (rust-lang/cargo#17349) - fix(clean): respect target with --doc (rust-lang/cargo#17322) - chore(renovate): Use a 3day minimum release age (rust-lang/cargo#17346) - test: Handle non-deterministic compilation order (rust-lang/cargo#17347) - docs(ref): Add missing config env variables (rust-lang/cargo#17345) - fix(trim-paths): workspace remap under -Zroot-dir (rust-lang/cargo#17337) - Fix funding link (rust-lang/cargo#17344) - fix(trim-paths): `/cargo/deps` fallback sources (rust-lang/cargo#17338) - doc: don't use mergeable info and json together (rust-lang/cargo#17336) - docs: document --output-format for cargo doc (rust-lang/cargo#17325)
This was referenced Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What does this PR try to resolve?
__CARGO_RUSTC_BOOTSTRAP_WS_REMAPis an internal contract with rustc bootstrap,
which needs workspace sources remapped to
/rustc/<sha>.The
toprefix participates in the fingerprint,since it is embedded in artifacts.
See #17309.
How to test and review this PR?
While we can make it a
-Zflag,__CARGO_DEFAULT_LIB_METADATArust-lang/rustCI without it being at least on one nightly.(Maybe there is a way, but I don't know how to set bootstrap cargo to a never built cargo)
Hence I chose the easiest way to implement.