-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add Rustfmt #44533
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
Add Rustfmt #44533
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,6 @@ | |
[submodule "src/tools/clippy"] | ||
path = src/tools/clippy | ||
url = https://github.com/rust-lang-nursery/rust-clippy.git | ||
[submodule "src/tools/rustfmt"] | ||
path = src/tools/rustfmt | ||
url = [email protected]:rust-lang-nursery/rustfmt.git | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ members = [ | |
"tools/cargo", | ||
"tools/rustdoc", | ||
"tools/rls", | ||
"tools/rustfmt", | ||
# FIXME(https://github.com/rust-lang/cargo/issues/4089): move these to exclude | ||
"tools/rls/test_data/borrow_error", | ||
"tools/rls/test_data/completion", | ||
|
@@ -58,3 +59,9 @@ debug-assertions = false | |
|
||
[patch.'https://github.com/rust-lang/cargo'] | ||
cargo = { path = "tools/cargo" } | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you add a comment here for why there's two sections? |
||
[patch.'https://github.com/rust-lang-nursery/rustfmt'] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. single quotes confused some editors (e.g. the vscode toml plugin) - could you make them double quotes? |
||
rustfmt-nightly = { path = "tools/rustfmt" } | ||
|
||
[patch.crates-io] | ||
rustfmt-nightly = { path = "tools/rustfmt" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this use an https url like the other submodules? I don't know why the others don't use ssh, bug may as well be consistent I guess?