Skip to content

fix(build-rs): make unstable compile - #17489

Merged
weihanglo merged 3 commits into
rust-lang:masterfrom
weihanglo:build-rs-unstable
Sep 20, 2026
Merged

weihanglo merged 3 commits into
rust-lang:masterfrom
weihanglo:build-rs-unstable

Conversation

@weihanglo

Copy link
Copy Markdown
Member

What does this PR try to resolve?

This was found when addressing #17488 (comment): adding trim-paths env vars support in build-rs.

Apparently the unstable Cargo feature in build-rs has been broken for a long while but nobody noticed.

How to test and review this PR?

New CI step should help verify it.

🤖 LLM disclosure: LLM helped me find new stable cfg name.

* `doc_auto_cfg` got merged into `doc_cfg`
   in 1.92 via rust-lang/rust#138907
* cfg `doc` is set for all channels
  so it fail on stagle channel because of `#[feature(...)]`.
  Use `docsrs` instead
@rustbot rustbot added A-build-scripts Area: build.rs scripts A-infrastructure Area: infrastructure around the cargo repo, ci, releases, etc. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 19, 2026
@rustbot

rustbot commented Sep 19, 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
weihanglo enabled auto-merge September 20, 2026 02:08
@weihanglo
weihanglo added this pull request to the merge queue Sep 20, 2026
Merged via the queue into rust-lang:master with commit 168501b Sep 20, 2026
106 of 113 checks passed
@weihanglo
weihanglo deleted the build-rs-unstable branch September 20, 2026 03:16
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 20, 2026
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Sep 22, 2026
Update cargo submodule

10 commits in 495c385d0875c4ba51eb72ea0448a2d4c018b8d4..98a09e7e7d62850f14e5b6132101fc1edd19a16f
2026-09-16 12:48:58 +0000 to 2026-09-21 19:03:16 +0000
- feat(build-rs): trim-paths inputs  (rust-lang/cargo#17491)
- Remove README CI badge (rust-lang/cargo#17495)
- feat(builtin-deps): Add unstable `builtin-dependencies` feature (rust-lang/cargo#17497)
- test(prerelease): concurrent downloads snapshots be unordered (rust-lang/cargo#17492)
- Account for (uplift) hardlinks when calculating clean file size (rust-lang/cargo#17485)
- feat(hints): extract mostly-unused diagnostics  (rust-lang/cargo#17457)
- fix(build-rs): make `unstable` compile  (rust-lang/cargo#17489)
- refactor(context): Split config keys in code, not at runtime (rust-lang/cargo#17490)
- fix(prerelease): preserve locked prerelease deps (rust-lang/cargo#17464)
- Remove -Zasymmetric-token / cargo:paseto (rust-lang/cargo#17486)

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

10 commits in 495c385d0875c4ba51eb72ea0448a2d4c018b8d4..98a09e7e7d62850f14e5b6132101fc1edd19a16f
2026-09-16 12:48:58 +0000 to 2026-09-21 19:03:16 +0000
- feat(build-rs): trim-paths inputs  (rust-lang/cargo#17491)
- Remove README CI badge (rust-lang/cargo#17495)
- feat(builtin-deps): Add unstable `builtin-dependencies` feature (rust-lang/cargo#17497)
- test(prerelease): concurrent downloads snapshots be unordered (rust-lang/cargo#17492)
- Account for (uplift) hardlinks when calculating clean file size (rust-lang/cargo#17485)
- feat(hints): extract mostly-unused diagnostics  (rust-lang/cargo#17457)
- fix(build-rs): make `unstable` compile  (rust-lang/cargo#17489)
- refactor(context): Split config keys in code, not at runtime (rust-lang/cargo#17490)
- fix(prerelease): preserve locked prerelease deps (rust-lang/cargo#17464)
- Remove -Zasymmetric-token / cargo:paseto (rust-lang/cargo#17486)

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

10 commits in 495c385d0875c4ba51eb72ea0448a2d4c018b8d4..98a09e7e7d62850f14e5b6132101fc1edd19a16f
2026-09-16 12:48:58 +0000 to 2026-09-21 19:03:16 +0000
- feat(build-rs): trim-paths inputs  (rust-lang/cargo#17491)
- Remove README CI badge (rust-lang/cargo#17495)
- feat(builtin-deps): Add unstable `builtin-dependencies` feature (rust-lang/cargo#17497)
- test(prerelease): concurrent downloads snapshots be unordered (rust-lang/cargo#17492)
- Account for (uplift) hardlinks when calculating clean file size (rust-lang/cargo#17485)
- feat(hints): extract mostly-unused diagnostics  (rust-lang/cargo#17457)
- fix(build-rs): make `unstable` compile  (rust-lang/cargo#17489)
- refactor(context): Split config keys in code, not at runtime (rust-lang/cargo#17490)
- fix(prerelease): preserve locked prerelease deps (rust-lang/cargo#17464)
- Remove -Zasymmetric-token / cargo:paseto (rust-lang/cargo#17486)

r? ghost
@rustbot rustbot added this to the 1.100.0 milestone Sep 23, 2026
pull Bot pushed a commit to xtqqczze/rust-lang-miri that referenced this pull request Sep 24, 2026
Update cargo submodule

10 commits in 495c385d0875c4ba51eb72ea0448a2d4c018b8d4..98a09e7e7d62850f14e5b6132101fc1edd19a16f
2026-09-16 12:48:58 +0000 to 2026-09-21 19:03:16 +0000
- feat(build-rs): trim-paths inputs  (rust-lang/cargo#17491)
- Remove README CI badge (rust-lang/cargo#17495)
- feat(builtin-deps): Add unstable `builtin-dependencies` feature (rust-lang/cargo#17497)
- test(prerelease): concurrent downloads snapshots be unordered (rust-lang/cargo#17492)
- Account for (uplift) hardlinks when calculating clean file size (rust-lang/cargo#17485)
- feat(hints): extract mostly-unused diagnostics  (rust-lang/cargo#17457)
- fix(build-rs): make `unstable` compile  (rust-lang/cargo#17489)
- refactor(context): Split config keys in code, not at runtime (rust-lang/cargo#17490)
- fix(prerelease): preserve locked prerelease deps (rust-lang/cargo#17464)
- Remove -Zasymmetric-token / cargo:paseto (rust-lang/cargo#17486)

r? ghost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-build-scripts Area: build.rs scripts A-infrastructure Area: infrastructure around the cargo repo, ci, releases, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants