Skip to content

test(mock-std): Set stable crate versions to 0.0.0 - #17565

Merged
epage merged 1 commit into
rust-lang:masterfrom
adamgemmell:dev/builtins/mock-std-versions
Oct 8, 2026
Merged

epage merged 1 commit into
rust-lang:masterfrom
adamgemmell:dev/builtins/mock-std-versions

Conversation

@adamgemmell

Copy link
Copy Markdown
Contributor

What does this PR try to resolve?

In the explicit dependencies (#16960) RFC, the stable standard library crates are fixed to 0.0.0. This will allow Cargo to assume the version of these packages if necessary, so I'd like to update the mock-std component to match this invariant. In any case the versions of these crates will be visible in future resolve/lockfile tests so I'd like mock-std tests to match the real ones.

The mock-std component still differs from the real versions of various unstable standard library crates, but I'd like to leave those versions different to hopefully catch if Cargo starts wrongfully assuming the versions of those crates too.

How to test and review this PR?

This PR just affects tests and not any user facing behaviour.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 8, 2026
@rustbot

rustbot commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

r? @Muscraft

rustbot has assigned @Muscraft.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Muscraft, @epage, @weihanglo
  • @Muscraft, @epage, @weihanglo expanded to Muscraft, epage, weihanglo
  • Random selection from Muscraft, epage, weihanglo

@epage
epage enabled auto-merge October 8, 2026 15:00
@epage
epage added this pull request to the merge queue Oct 8, 2026
Merged via the queue into rust-lang:master with commit 424d36d Oct 8, 2026
31 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 8, 2026
@adamgemmell
adamgemmell deleted the dev/builtins/mock-std-versions branch October 13, 2026 13:00
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Oct 14, 2026
Update cargo submodule

14 commits in 29c5daa1afc262323364e039bb70c83372cc702c..3960fa69bb617e3d93c4ddc087c1b32bf12ad907
2026-10-07 22:13:48 +0000 to 2026-10-12 19:29:05 +0000
- refactor: modernize some API usages for 1.99 (rust-lang/cargo#17584)
- Removed some dead workspace tests (rust-lang/cargo#17582)
- Bypass rustup proxy when RUSTUP_TOOLCHAIN is an absolute path (rust-lang/cargo#17562)
- chore: Add an LLM disclosure to the PR template (rust-lang/cargo#17580)
- Restrict workspace-relative dep-info to workspace packages (rust-lang/cargo#17575)
- fix(layout): exclude a build-dir created as a parent from backups (rust-lang/cargo#17560)
- Avoid absolute paths in fingerprints if they are relative to the workspace root (rust-lang/cargo#17573)
- chore(deps): update msrv (3 versions) to v1.97 (rust-lang/cargo#17572)
- fix(job): Allow explicit child process breakaway on Windows (rust-lang/cargo#17527)
- fix(git): Add future-incompat warning in prep for removing auto-detection (rust-lang/cargo#17568)
- fix(config): Don't process includes for `credentials.toml` files (rust-lang/cargo#17569)
- doc(builtin-dep): Document the builtin package ID spec format (rust-lang/cargo#17564)
- test(mock-std): Set stable crate versions to 0.0.0 (rust-lang/cargo#17565)
- Fix: cargo installing from a directory source fails for binary packages with no dependencies. (rust-lang/cargo#17552)

r? ghost
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Oct 14, 2026
Update cargo submodule

14 commits in 29c5daa1afc262323364e039bb70c83372cc702c..3960fa69bb617e3d93c4ddc087c1b32bf12ad907
2026-10-07 22:13:48 +0000 to 2026-10-12 19:29:05 +0000
- refactor: modernize some API usages for 1.99 (rust-lang/cargo#17584)
- Removed some dead workspace tests (rust-lang/cargo#17582)
- Bypass rustup proxy when RUSTUP_TOOLCHAIN is an absolute path (rust-lang/cargo#17562)
- chore: Add an LLM disclosure to the PR template (rust-lang/cargo#17580)
- Restrict workspace-relative dep-info to workspace packages (rust-lang/cargo#17575)
- fix(layout): exclude a build-dir created as a parent from backups (rust-lang/cargo#17560)
- Avoid absolute paths in fingerprints if they are relative to the workspace root (rust-lang/cargo#17573)
- chore(deps): update msrv (3 versions) to v1.97 (rust-lang/cargo#17572)
- fix(job): Allow explicit child process breakaway on Windows (rust-lang/cargo#17527)
- fix(git): Add future-incompat warning in prep for removing auto-detection (rust-lang/cargo#17568)
- fix(config): Don't process includes for `credentials.toml` files (rust-lang/cargo#17569)
- doc(builtin-dep): Document the builtin package ID spec format (rust-lang/cargo#17564)
- test(mock-std): Set stable crate versions to 0.0.0 (rust-lang/cargo#17565)
- Fix: cargo installing from a directory source fails for binary packages with no dependencies. (rust-lang/cargo#17552)

r? ghost
@rustbot rustbot added this to the 1.101.0 milestone Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants