Repository navigation
mach: Do not use unstable rust for rustfmt - #31441
Merged
Merged
Conversation
mukilan
reviewed
Feb 28, 2024
|
|
||
| # Servo depends on several `rustfmt` that are unstable. These are still supported by | ||
| # stable `rustfmt if they are passed as command-line arguments. These are the | ||
| # arguments we sue. |
Member
There was a problem hiding this comment.
Suggested change
| # arguments we sue. | |
| # arguments we use |
| SERVO_TESTS_PATH = os.path.join("tests", "wpt", "mozilla", "tests") | ||
|
|
||
| # Servo depends on several `rustfmt` that are unstable. These are still supported by | ||
| # stable `rustfmt if they are passed as command-line arguments. These are the |
Member
There was a problem hiding this comment.
Suggested change
| # stable `rustfmt if they are passed as command-line arguments. These are the | |
| # stable `rustfmt` if they are passed as command-line arguments. These are the |
| WEB_PLATFORM_TESTS_PATH = os.path.join("tests", "wpt", "tests") | ||
| SERVO_TESTS_PATH = os.path.join("tests", "wpt", "mozilla", "tests") | ||
|
|
||
| # Servo depends on several `rustfmt` that are unstable. These are still supported by |
Member
There was a problem hiding this comment.
Suggested change
| # Servo depends on several `rustfmt` that are unstable. These are still supported by | |
| # Servo depends on several `rustfmt` arguments that are unstable. These are still supported by |
mrobinson
force-pushed
the
no-unstable-for-rustfmt
branch
from
February 28, 2024 12:12
e856ed6 to
f2bdc2f
Compare
Member
Author
|
@mukilan Thanks for the review. I've updated the PR fixing the typos. |
mukilan
approved these changes
Feb 28, 2024
We can use stable rust if we pass the unstable configuration as command-line arguments to rustfmt itself. This prevents needing to install an unstable rust toolchain. The one downside here is that it doesn't seem that "ignore" is supported so we have to start formatting the files in "third_party." This shouldn't be a huge issue because we don't plan to check much more rust code into those directories.
mrobinson
force-pushed
the
no-unstable-for-rustfmt
branch
from
February 28, 2024 12:19
f2bdc2f to
86ccee8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We can use stable rust if we pass the unstable configuration as
command-line arguments to rustfmt itself. This prevents needing to
install an unstable rust toolchain.
The one downside here is that it doesn't seem that "ignore" is
supported so we have to start formatting the files in "third_party."
This shouldn't be a huge issue because we don't plan to check much more
rust code into those directories.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsrustfmtcall.