Skip to content

Add a new "fix" mode #777

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Add a new "fix" mode #777

wants to merge 1 commit into from

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented May 24, 2025

This introduces a new "fix" mode to run cargo fix. This is primarily intended to support edition migration testing.

This includes two related changes:

  • Adds the ability to change the CapLints behavior because setting CapLints interferes with how cargo fix works.
  • Sets the mount mode of the source directory to read-write because cargo fix inherently needs to be able to write to the source directory.

It probably needs more work for general purpose cargo fix testing (non-edition) because otherwise it would need to rebuild the source directory between toolchains. I don't need that right now, so deferred that till later.

There is additional work being done on cargo to support this, and more documentation will be coming when everything is pulled together.

Warning

Draft because this depends on a new release of rustwide with rust-lang/rustwide#99.

This introduces a new "fix" mode to run `cargo fix`. This is primarily
intended to support edition migration testing.

This includes two related changes:

- Adds the ability to change the CapLints behavior because setting
  CapLints interferes with how `cargo fix` works.
- Sets the mount mode of the source directory to read-write because
  `cargo fix` inherently needs to be able to write to the source
  directory.

It probably needs more work for general purpose `cargo fix` testing
(non-edition) because otherwise it would need to rebuild the source
directory between toolchains. I don't need that right now, so deferred
that till later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant