Skip to content

Commit c4508e1

Browse files
committed
Add rustfmt as a submodule
1 parent a7b7dce commit c4508e1

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@
3636
[submodule "src/tools/clippy"]
3737
path = src/tools/clippy
3838
url = https://github.com/rust-lang-nursery/rust-clippy.git
39+
[submodule "src/tools/rustfmt"]
40+
path = src/tools/rustfmt
41+
url = [email protected]:rust-lang-nursery/rustfmt.git

src/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ members = [
1818
"tools/cargo",
1919
"tools/rustdoc",
2020
"tools/rls",
21+
"tools/rustfmt",
2122
# FIXME(https://github.com/rust-lang/cargo/issues/4089): move these to exclude
2223
"tools/rls/test_data/borrow_error",
2324
"tools/rls/test_data/completion",
@@ -58,3 +59,9 @@ debug-assertions = false
5859

5960
[patch.'https://github.com/rust-lang/cargo']
6061
cargo = { path = "tools/cargo" }
62+
63+
[patch.'https://github.com/rust-lang-nursery/rustfmt']
64+
rustfmt-nightly = { path = "tools/rustfmt" }
65+
66+
[patch.crates-io]
67+
rustfmt-nightly = { path = "tools/rustfmt" }

src/tools/rustfmt

Submodule rustfmt added at a1fd68d

0 commit comments

Comments
 (0)