Skip to content

fix(config): Proper dotted tuple support with legacy fallback - #17536

Merged
rustbot merged 4 commits into
rust-lang:masterfrom
epage:config-tuple
Sep 29, 2026
Merged

rustbot merged 4 commits into
rust-lang:masterfrom
epage:config-tuple

Conversation

@epage

@epage epage commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR try to resolve?

As discussed in today's Cargo team meeting

Fixes #15901
Fixes #17529

How to test and review this PR?

Stacked on #17535

@epage epage added the beta-nominated Nominated to backport to the beta branch. label Sep 29, 2026
@rustbot

rustbot commented Sep 29, 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, weihanglo

@weihanglo weihanglo left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. Most of my review comments are nits. Thanks!

Also seconded the beta backport. The change seems trivial.

View changes since this review

Comment thread tests/testsuite/config.rs Resolved
Comment thread src/context/key.rs Resolved
Comment thread src/context/target.rs Resolved
Comment thread src/context/target.rs Resolved
Comment thread src/context/target.rs Resolved
@weihanglo

Copy link
Copy Markdown
Member

As discussed in today's Cargo team meeting

Fixes #17529
Fixes #17529

You probably want to fix #15901?

@rustbot

rustbot commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@weihanglo weihanglo left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thanks.

@rustbot merge

View changes since this review

@rustbot
rustbot added this pull request to the merge queue Sep 29, 2026
Merged via the queue into rust-lang:master with commit f3865b2 Sep 29, 2026
29 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 29, 2026
@epage
epage deleted the config-tuple branch September 29, 2026 21:20
weihanglo added a commit that referenced this pull request Sep 29, 2026
…t with legacy fallback (#17537)

Beta backports
- #17536

In order to make CI pass, the following PRs are also cherry-picked:
- none
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Sep 30, 2026
Update cargo submodule

8 commits in 3d7cf6e937d6127d0f49881bf689c560b36d35c4..f3865b2a4d1acc5276f6b3c67d0e057f4dab3928
2026-09-25 01:47:29 +0000 to 2026-09-29 19:58:08 +0000
- fix(config): Proper dotted tuple support with legacy fallback (rust-lang/cargo#17536)
- refactor: Rename internal content from target-triple to target-tuple (rust-lang/cargo#17535)
- docs(changelog): remove duplicate items (rust-lang/cargo#17528)
- chore: bump to 0.102.0; update changelog (rust-lang/cargo#17525)
- feat(metadata): mirror package features in features_v2 (rust-lang/cargo#17517)
- feat(config): Add build.profile, install.profile (rust-lang/cargo#17215)
- feat(builtin-deps): Add `SourceKind::Builtin` (rust-lang/cargo#17513)
- fix(compilation): Preventing OUT_DIR env var from leaking into cargo run after build.rs run (rust-lang/cargo#17503)

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

8 commits in 3d7cf6e937d6127d0f49881bf689c560b36d35c4..f3865b2a4d1acc5276f6b3c67d0e057f4dab3928
2026-09-25 01:47:29 +0000 to 2026-09-29 19:58:08 +0000
- fix(config): Proper dotted tuple support with legacy fallback (rust-lang/cargo#17536)
- refactor: Rename internal content from target-triple to target-tuple (rust-lang/cargo#17535)
- docs(changelog): remove duplicate items (rust-lang/cargo#17528)
- chore: bump to 0.102.0; update changelog (rust-lang/cargo#17525)
- feat(metadata): mirror package features in features_v2 (rust-lang/cargo#17517)
- feat(config): Add build.profile, install.profile (rust-lang/cargo#17215)
- feat(builtin-deps): Add `SourceKind::Builtin` (rust-lang/cargo#17513)
- fix(compilation): Preventing OUT_DIR env var from leaking into cargo run after build.rs run (rust-lang/cargo#17503)

r? ghost
@rustbot rustbot added this to the 1.101.0 milestone Sep 30, 2026
RalfJung pushed a commit to RalfJung/miri that referenced this pull request Oct 1, 2026
Update cargo submodule

8 commits in 3d7cf6e937d6127d0f49881bf689c560b36d35c4..f3865b2a4d1acc5276f6b3c67d0e057f4dab3928
2026-09-25 01:47:29 +0000 to 2026-09-29 19:58:08 +0000
- fix(config): Proper dotted tuple support with legacy fallback (rust-lang/cargo#17536)
- refactor: Rename internal content from target-triple to target-tuple (rust-lang/cargo#17535)
- docs(changelog): remove duplicate items (rust-lang/cargo#17528)
- chore: bump to 0.102.0; update changelog (rust-lang/cargo#17525)
- feat(metadata): mirror package features in features_v2 (rust-lang/cargo#17517)
- feat(config): Add build.profile, install.profile (rust-lang/cargo#17215)
- feat(builtin-deps): Add `SourceKind::Builtin` (rust-lang/cargo#17513)
- fix(compilation): Preventing OUT_DIR env var from leaking into cargo run after build.rs run (rust-lang/cargo#17503)

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

1 commits in 3d7cf6e937d6127d0f49881bf689c560b36d35c4..7552a885e7c68a5b5a3dfc5c158059983ac3efb7
2026-09-25 01:47:29 +0000 to 2026-09-29 18:08:50 -0400
- [beta-1.100] backport rust-lang/cargo#17536: fix(config): Proper dotted tuple support with legacy fallback (rust-lang/cargo#17537)

r? ghost
jannic added a commit to jannic-dev-forks/cargo that referenced this pull request Oct 15, 2026
The fallback introduced with rust-lang#17536 didn't cover rustflags yet.
jannic added a commit to jannic-dev-forks/cargo that referenced this pull request Oct 15, 2026
The fallback introduced with rust-lang#17536 didn't cover rustflags yet.
jannic added a commit to jannic-dev-forks/cargo that referenced this pull request Oct 17, 2026
The fallback introduced with rust-lang#17536 didn't cover rustflags yet.
jannic added a commit to jannic-dev-forks/cargo that referenced this pull request Oct 17, 2026
The fallback introduced with rust-lang#17536 didn't cover rustflags yet.
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-rust-lang__cargo that referenced this pull request Oct 17, 2026
The fallback introduced with rust-lang#17536 didn't cover rustflags yet.

### What does this PR try to resolve?

Closes rust-lang#17593
weihanglo pushed a commit that referenced this pull request Oct 17, 2026
The fallback introduced with #17536 didn't cover rustflags yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cfg-expr Area: Platform cfg expressions A-cli Area: Command-line interface, option parsing, etc. A-completions Area: shell completions A-configuration Area: cargo config files and env vars beta-nominated Nominated to backport to the beta branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unquoted [target.<triple>] config is ignored for triples that contain a dot Config keys for and targets with dots in its name.

4 participants