Skip to content

refactor(config): Move include removal up a layer, making include_paths - #17776

Merged
Muscraft merged 2 commits into
rust-lang:masterfrom
epage:remove
Nov 20, 2026
Merged

Muscraft merged 2 commits into
rust-lang:masterfrom
epage:remove

Conversation

@epage

@epage epage commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

What does this PR try to resolve?

I am looking at switching include_paths to creating a single-layer ConfigReader and using serde.
This is prep for that.

Notes to reviewers

Sharing this now to reduce conflicts.


🤖 LLM involvement: prototyping and merge conflict resolution

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

rustbot commented Nov 20, 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

@Muscraft
Muscraft enabled auto-merge November 20, 2026 03:56
@rustbot

This comment has been minimized.

@weihanglo

Copy link
Copy Markdown
Member

Just a heads-up, after my change include_paths will have only one caller, so it should be fine if it is just a mild signature change.

@weihanglo

Copy link
Copy Markdown
Member
---- replace::override_simple stdout ----
running `D:\a\cargo\cargo\target\debug\cargo.exe check`

thread 'replace::override_simple' (9136) panicked at tests\testsuite\replace.rs:54:10:

test failed running `D:\a\cargo\cargo\target\debug\cargo.exe check`
error: process exited with code 101 (expected 0)
--- stdout

--- stderr
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings` (exit code: 0xc00000fd, STATUS_STACK_OVERFLOW)
  --- stdout
  ___.exe
  lib___.rlib
  ___.dll
  ___.dll
  lib___.a
  ___.dll
  C:\Users\runneradmin\.rustup\toolchains\nightly-x86_64-pc-windows-gnu
  off
  ___
  debug_assertions
  fmt_debug="full"
  overflow_checks
  panic="unwind"
  proc_macro
  relocation_model="pic"
  target_abi=""
  target_arch="x86_64"
  target_endian="little"
  target_env="gnu"
  target_family="windows"
  target_feature="cmpxchg16b"
  target_feature="fxsr"
  target_feature="lahfsahf"
  target_feature="sse"
  target_feature="sse2"
  target_feature="sse3"
  target_feature="x87"
  target_has_atomic
  target_has_atomic="128"
  target_has_atomic="16"
  target_has_atomic="32"
  target_has_atomic="64"
  target_has_atomic="8"
  target_has_atomic="ptr"
  target_has_atomic_load_store
  target_has_atomic_load_store="128"
  target_has_atomic_load_store="16"
  target_has_atomic_load_store="32"
  target_has_atomic_load_store="64"
  target_has_atomic_load_store="8"
  target_has_atomic_load_store="ptr"
  target_has_atomic_primitive_alignment="128"
  target_has_atomic_primitive_alignment="16"
  target_has_atomic_primitive_alignment="32"
  target_has_atomic_primitive_alignment="64"
  target_has_atomic_primitive_alignment="8"
  target_has_atomic_primitive_alignment="ptr"
  target_has_reliable_f128
  target_has_threads
  target_object_format="coff"
  target_os="windows"
  target_pointer_width="64"
  target_thread_local
  target_vendor="pc"
  ub_checks
  windows

  --- stderr

  thread 'main' (3816) has overflowed its stack

I think we need to find the old windows stack overflow and post what we have encountered recently. (like, 5+ failures in 3 days?)

…hs pure

I am looking at switching `include_paths` to creating a single-layer
`ConfigReader` and using serde.
This is prep for that.
Sharing this now to reduce conflicts.
@rustbot

rustbot commented Nov 20, 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.

@Muscraft
Muscraft added this pull request to the merge queue Nov 20, 2026
Merged via the queue into rust-lang:master with commit ebc5121 Nov 20, 2026
30 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 20, 2026
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Nov 22, 2026
Update cargo submodule

28 commits in f93c676e3e7ab1aee08dc95d869700f6b99a1a20..ae8f06eb41b8c4a534d0f280f1b9d287f45ead73
2026-11-15 17:27:10 +0000 to 2026-11-21 04:06:35 +0000
- feat(cargo-util-config): expose config loader (rust-lang/cargo#17781)
- feat(config): Add IncludeConfig (rust-lang/cargo#17782)
- fix(config): `--config` use same layers merge as config files (rust-lang/cargo#17780)
- refactor(config): Move include removal up a layer, making include_paths (rust-lang/cargo#17776)
- Support wasm64-unknown-emscripten (rust-lang/cargo#17620)
- fix(context): merge files and `--config` as layers (rust-lang/cargo#17775)
- fix(config)!: Really ensure no comments are present  (rust-lang/cargo#17774)
- fix(config): list unmerged config in precedence order  (rust-lang/cargo#17773)
- fix(config): Handle parsing dotted keys using TOML keys  (rust-lang/cargo#17770)
- fix(config): Improve config schema by implementing Serialize (rust-lang/cargo#17762)
- fix(config): drop redundant config merge error context (rust-lang/cargo#17769)
- fix(config): keep winning definition for non-mergeable list  (rust-lang/cargo#17766)
- test(build-analysis): update for new section timing order (rust-lang/cargo#17767)
- docs(ref): Deprecate 'workspace.package.authors' (rust-lang/cargo#16951)
- Fix git checkout long paths (rust-lang/cargo#17752)
- fix(config): layer loads to work the same as merged load  (rust-lang/cargo#17761)
- refactor(config): Switch another location to `resolve` (rust-lang/cargo#17760)
- refactor(config): Cleanup IncludeConfig by adding ConfigParentRelativePath (rust-lang/cargo#17759)
- docs(lints): Remove nonexistent lints from cargo::default desc (rust-lang/cargo#17757)
- Add period to cargo-toml-vs-cargo-lock.md for clarity. (rust-lang/cargo#17754)
- fix(config)!: Be more explicit about what ConfigRelativePaths are relative to (rust-lang/cargo#17751)
- Fix ‘dependencoes’ typos (rust-lang/cargo#17753)
- refactor(credential)!: replace time with `[email protected]` (rust-lang/cargo#17750)
- refactor(context): miscellaneous loader cleanup (rust-lang/cargo#17747)
- docs(profiles): fix outdated default (rust-lang/cargo#17748)
- chore(config): migrate Renovate config (rust-lang/cargo#17746)
- refactor(context): a `ConfigLoader` type (rust-lang/cargo#17745)
- refactor: modernize with 1.100 API (rust-lang/cargo#17728)
rust-bors Bot pushed a commit to rust-lang/rust that referenced this pull request Nov 22, 2026
Update cargo submodule

28 commits in f93c676e3e7ab1aee08dc95d869700f6b99a1a20..ae8f06eb41b8c4a534d0f280f1b9d287f45ead73
2026-11-15 17:27:10 +0000 to 2026-11-21 04:06:35 +0000
- feat(cargo-util-config): expose config loader (rust-lang/cargo#17781)
- feat(config): Add IncludeConfig (rust-lang/cargo#17782)
- fix(config): `--config` use same layers merge as config files (rust-lang/cargo#17780)
- refactor(config): Move include removal up a layer, making include_paths (rust-lang/cargo#17776)
- Support wasm64-unknown-emscripten (rust-lang/cargo#17620)
- fix(context): merge files and `--config` as layers (rust-lang/cargo#17775)
- fix(config)!: Really ensure no comments are present  (rust-lang/cargo#17774)
- fix(config): list unmerged config in precedence order  (rust-lang/cargo#17773)
- fix(config): Handle parsing dotted keys using TOML keys  (rust-lang/cargo#17770)
- fix(config): Improve config schema by implementing Serialize (rust-lang/cargo#17762)
- fix(config): drop redundant config merge error context (rust-lang/cargo#17769)
- fix(config): keep winning definition for non-mergeable list  (rust-lang/cargo#17766)
- test(build-analysis): update for new section timing order (rust-lang/cargo#17767)
- docs(ref): Deprecate 'workspace.package.authors' (rust-lang/cargo#16951)
- Fix git checkout long paths (rust-lang/cargo#17752)
- fix(config): layer loads to work the same as merged load  (rust-lang/cargo#17761)
- refactor(config): Switch another location to `resolve` (rust-lang/cargo#17760)
- refactor(config): Cleanup IncludeConfig by adding ConfigParentRelativePath (rust-lang/cargo#17759)
- docs(lints): Remove nonexistent lints from cargo::default desc (rust-lang/cargo#17757)
- Add period to cargo-toml-vs-cargo-lock.md for clarity. (rust-lang/cargo#17754)
- fix(config)!: Be more explicit about what ConfigRelativePaths are relative to (rust-lang/cargo#17751)
- Fix ‘dependencoes’ typos (rust-lang/cargo#17753)
- refactor(credential)!: replace time with `[email protected]` (rust-lang/cargo#17750)
- refactor(context): miscellaneous loader cleanup (rust-lang/cargo#17747)
- docs(profiles): fix outdated default (rust-lang/cargo#17748)
- chore(config): migrate Renovate config (rust-lang/cargo#17746)
- refactor(context): a `ConfigLoader` type (rust-lang/cargo#17745)
- refactor: modernize with 1.100 API (rust-lang/cargo#17728)
@rustbot rustbot added this to the 1.102.0 milestone Nov 22, 2026
@epage
epage deleted the remove branch November 24, 2026 01:26
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