-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Allow formatting specific subdirectories #84783
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Some(first) => { | ||
let mut walker = WalkBuilder::new(first); | ||
for path in &paths[1..] { | ||
walker.add(path); |
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.
Hm. This doesn't do any verification of what the passed path is, which might be a problem. I'm not sure the ignore_fmt rules will work when not rooted at the build.src.clone() start; have you checked that e.g. passing src/test/ui doesn't change anything? If not, this isn't quite the right fix.
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.
have you checked that e.g. passing src/test/ui doesn't change anything
I have now! 😆 and there are no changes; I have a hard time believing everything there is formatted how rustfmt likes it, so I think we're good :)
@bors r+ rollup |
📌 Commit dadcb05 has been approved by |
Allow formatting specific subdirectories Fixes rust-lang#71094.
Rollup of 7 pull requests Successful merges: - rust-lang#84777 (Apply `--cfg parallel_compiler` when documenting) - rust-lang#84783 (Allow formatting specific subdirectories) - rust-lang#84998 (Show nicer error when an 'unstable fingerprints' error occurs) - rust-lang#85002 (RELEASES.md: Use broken_intra_doc_links as an example, not nightly lint) - rust-lang#85051 (Allow checking miri and RLS with `x.py check src/tools/{miri,rls}`) - rust-lang#85114 (Remove outdated FIXME for download-rustc) - rust-lang#85143 (Document Rc::from) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #71094.