Skip to content

Remove rust-tools-util - #17574

Open
Jarcho wants to merge 2 commits into
rust-lang:masterfrom
Jarcho:rustc-tools-util
Open

Remove rust-tools-util#17574
Jarcho wants to merge 2 commits into
rust-lang:masterfrom
Jarcho:rustc-tools-util

Conversation

@Jarcho

@Jarcho Jarcho commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Based on #17573, but it doesn't really need it. Only the second commit is relevant to this PR.

This removes the rustc_tools_util crate and inlines only the part we actually use.

cc @flip1995

changelog: none

Jarcho added 2 commits August 16, 2026 06:38
* Move all argument parsing into a single loop.
* Print an error when `--explain` is missing an argument.
* Print an error when there are multiple `--explain` arguments.
* Don't parse flags after `--`
* Only produce a single version string in the build script
@rustbot

rustbot commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request. A reviewer will take a look after it receives 2 community reviews.

In the meantime, we would highly appreciate if you could try to review any of PRs waiting on community reviews.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added S-waiting-on-community-reviews Status: This is awaiting for positive reviews from the community before a maintainer is assigned. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Aug 16, 2026

@CommanderStorm CommanderStorm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

community review: nice cleanup, lgtm

View changes since this review

Comment thread src/main.rs
@@ -1,153 +1,166 @@
// We need this feature as it changes `dylib` linking behavior and allows us to link to
// `rustc_driver`.
#![feature(rustc_private)]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you sure you want to remove the explainer?

@flip1995

Copy link
Copy Markdown
Member

FWIW, miri is still using this. But a version from crates.io, so us removing this now should be fine.

https://github.com/rust-lang/rust/blob/e71c0f1e3395b10a8c331317be1a5c107bdf7b2e/src/tools/miri/cargo-miri/Cargo.toml#L28

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

Labels

S-waiting-on-community-reviews Status: This is awaiting for positive reviews from the community before a maintainer is assigned. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants