Skip to content

compiletest: Remove cleanup_debug_info_options#148194

Merged
bors merged 1 commit intorust-lang:masterfrom
Zalathar:no-cleanup
Nov 2, 2025
Merged

compiletest: Remove cleanup_debug_info_options#148194
bors merged 1 commit intorust-lang:masterfrom
Zalathar:no-cleanup

Conversation

@Zalathar
Copy link
Copy Markdown
Member

This "cleanup" function is more than a decade old, and I can't find any evidence of modern-day bootstrap being able to pass any of these flags to --host-rustcflags or --target-rustcflags.

I thought about replacing the cleanup with an assertion, but I think it's better to delete it entirely for now, and re-add checks later if they're motivated by actual problems in practice.

In addition to deleting some old and confusing code, this also lets us remove three instances of duplicating TestCx, which is the biggest win.

r? jieyouxu

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

Labels

A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants