-
Notifications
You must be signed in to change notification settings - Fork 75
Remove src/tools/rust-demangler #754
Copy link
Copy link
Closed
Labels
T-compilerAdd this label so rfcbot knows to poll the compiler teamAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was acceptedA major change proposal that was accepted
Metadata
Metadata
Assignees
Labels
T-compilerAdd this label so rfcbot knows to poll the compiler teamAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was acceptedA major change proposal that was accepted
Type
Fields
Give feedbackNo fields configured for issues without a type.
Proposal
src/tools/rust-demangler, and remove all of its associated code from bootstrap.src/tools/rust-demanglerrust#125880.rust-demangleris a small binary that reads a list of mangled symbols from stdin, demangles them (using therustc-demanglelibrary crate), and prints the demangled symbols to stdout.It was added as part of the initial implementation of coverage instrumentation in 2020/2021, so that coverage tests could pass it to
llvm-cov --Xdemanglerwhen generating coverage reports. It has been largely untouched since then.As of rust-lang/rust#125816 it is no longer used by coverage tests, and has no remaining in-tree uses.
There is code in bootstrap to build and package the demangler, but it's unclear where the resulting binaries actually end up, or whether there's any reasonable way for
rustupusers to obtain them.For users needing a command-line demangler,
rustfiltexists and is more actively maintained. It's also quite easy to use therustc-demanglelibrary to build a custom command-line demangler if necessary, with only a few lines of code.The tool's name (
rust-demangler) is easily confused with the name of the library craterustc-demangle, so removing the tool will eliminate that confusion. There also doesn't appear to be much reason to userust-demangleroverrustfilt.Mentors or Reviewers
Process
The main points of the Major Change Process are as follows:
@rustbot second.-C flag, then full team check-off is required.@rfcbot fcp mergeon either the MCP or the PR.You can read more about Major Change Proposals on forge.
Comments
This issue is not meant to be used for technical discussion. There is a Zulip stream for that. Use this issue to leave procedural comments, such as volunteering to review, indicating that you second the proposal (or third, etc), or raising a concern that you would like to be addressed.