Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove executor trait #15196

Closed
wants to merge 3 commits into from

Conversation

dev-ardi
Copy link

  • docs: Improve comments
  • refactor: Remove Executor trait

It looks like there was an Executor trait that existed but doesn't make much sense now,
since it's only implemented by a unit struct, so I simplify this by calling a method directly.

Hopefully this will also bring a minuscule perf gain but more importantly simplify cargo a bit.

@rustbot
Copy link
Collaborator

rustbot commented Feb 17, 2025

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) some time within the next two weeks.

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 A-build-execution Area: anything dealing with executing the compiler A-cli Area: Command-line interface, option parsing, etc. A-configuration Area: cargo config files and env vars Command-fix Command-install Command-package S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 17, 2025
@rustbot

This comment has been minimized.

@ehuss
Copy link
Contributor

ehuss commented Feb 17, 2025

I believe in #11428 we decided to keep the trait since some API users are using it.

@dev-ardi dev-ardi closed this Feb 17, 2025
github-merge-queue bot pushed a commit that referenced this pull request Feb 18, 2025
This salvages the few comments of
#[15196](#15196)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build-execution Area: anything dealing with executing the compiler A-cli Area: Command-line interface, option parsing, etc. A-configuration Area: cargo config files and env vars Command-fix Command-install Command-package 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.

3 participants