Repository navigation
Add changes needed to use rustfmt as a subtree in rust-lang/rust - #4703
Conversation
|
I don't think that PR is the right place for decisionmaking, I think we should file a separate issue and close that PR |
|
The repo size issues will occur on the subtree pull, pulling changes back in from Rust. |
|
What clippy typically does is pin a rust nightly via |
Yup, that was my plan :) if you look at |
1de947a to
14b0b87
Compare
|
Know the question about beta in CI has primarily been discussed elsewhere but posting here given context and this being the main PR left on this side of the equation. I don't see any issues with dropping beta from our CI jobs that would warrant preventing moving forward with trying the subtree approach. The only active use cases are tests that verify the ability/inability to use certain formatting config options on nightly/non-nightly, and I can't think of nor find any motivations for CI on beta that predate my involvement with the project either. |
|
Makes sense, and I'll point out that rustc will be CIing beta rustfmt with beta rustc anyway |
This was being overriden by `lf=eof` in `.gitattributes` in the root directory. Override it again to avoid warnings like this: ``` $ git diff src/tools/rustfmt/tests/target/issue-3494/crlf.rs warning: CRLF will be replaced by LF in src/tools/rustfmt/tests/target/issue-3494/crlf.rs. The file will have its original line endings in your working directory ```
- Update rust-toolchain to also install `rustc-dev` component
This also removes the (now unused) `RUSTC_RELEASE` and `RUSTC_RELEASE_CHANNEL` variables.
| [dependencies.rustc_ast] | ||
| package = "rustc-ap-rustc_ast" | ||
| version = "712.0.0" | ||
|
|
||
| [dependencies.rustc_ast_pretty] | ||
| package = "rustc-ap-rustc_ast_pretty" | ||
| version = "712.0.0" | ||
|
|
||
| [dependencies.rustc_data_structures] | ||
| package = "rustc-ap-rustc_data_structures" | ||
| version = "712.0.0" | ||
|
|
||
| [dependencies.rustc_errors] | ||
| package = "rustc-ap-rustc_errors" | ||
| version = "712.0.0" | ||
|
|
||
| [dependencies.rustc_expand] | ||
| package = "rustc-ap-rustc_expand" | ||
| version = "712.0.0" | ||
|
|
||
| [dependencies.rustc_parse] | ||
| package = "rustc-ap-rustc_parse" | ||
| version = "712.0.0" | ||
|
|
||
| [dependencies.rustc_session] | ||
| package = "rustc-ap-rustc_session" | ||
| version = "712.0.0" | ||
|
|
||
| [dependencies.rustc_span] | ||
| package = "rustc-ap-rustc_span" | ||
| version = "712.0.0" |
There was a problem hiding this comment.
my favorite diff of all time ❤️
The `matrix.channel` var is never set since <rust-lang/rustfmt#4703> or commit `26fb3fa737816532c17559552fb5ad0cbeeb610a` since 2021.
The `matrix.channel` var is never set since <rust-lang#4703> or commit `26fb3fa737816532c17559552fb5ad0cbeeb610a` since 2021.
These changes can be replicated by checking out rust-lang/rust#82208 and then running
git subtree push --prefix=src/tools/rustfmt <some remote here> subtree. That command took only a few seconds to run, I didn't run into any issues with repo size like Clippy has in the past.This shouldn't be merged until there's some sort of decision on rust-lang/rust#82208.