Repository navigation
Conversation
Record current behavior when build overrides or wildcard and named package overrides omit strip. Release builds expose the inherited-setting reset without changing debuginfo weakening or implicit stripping. Also verify that an explicit package strip setting still overrides the base profile.
Applying a build or package override that omits strip currently resets an explicit inherited value to Deferred(None). This can enable implicit debuginfo stripping despite strip=false, or replace strip="symbols" with strip="debuginfo". Keep the inherited value when strip is omitted, matching the documented per-setting precedence. Explicit strip settings in more specific overrides continue to take precedence. The reset dates to 0608fcd (boolean strip support); the original strip implementation preserved omitted settings. The implicit-stripping proposal in rust-lang#13257 also limits the optimization to cases without an explicit strip setting. Update the baseline snapshots to show the behavior change for build, wildcard, and named package overrides. Verify explicit package opt-outs continue to override the base profile.
Member
Author
|
Sorry for the noise, I am experimenting different stuff and it opened a PR… |
Muscraft
added a commit
to Muscraft/cargo
that referenced
this pull request
Nov 5, 2026
### What does this PR try to resolve? Profile override wasn't respected for the `strip` option. The changed was introduced in rust-lang/cargo@0608fcd99d (1.52), and the smarter stripping also failed to notice the bug (rust-lang/cargo@58da1cec19a, 1.77). After this PR, overridding the `strip` profile option is respected. ### Notes to reviewers I believe this was an oversight as nobody really override the `strip` option, though I could be wrong. --- 🤖 LLM involvement: This was pointed out during Codex reviewing my other experiments. I was really mad that they submitted a PR without my consent: <rust-lang#17677>. Tests are anyway generated. Change is one-line change. I deleted and typed it manually so counted as hand-written? (of course I tweaked the test a bit and wrote my own description)
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.
No description provided.