-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
rustbuild: distribute cargo-fmt alongside rustfmt #46031
Conversation
Signed-off-by: Marc-Antoine Perennou <[email protected]>
Signed-off-by: Marc-Antoine Perennou <[email protected]>
Signed-off-by: Marc-Antoine Perennou <[email protected]>
r? @nrc |
Thanks! Seems good to me, but r? @Mark-Simulacrum for the build system changes. |
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.
Looks pretty good. I'm not too happy with the macro, but I think it's okay for now at least. We do similar things elsewhere, and until we come up with a better solution this should work.
Please fix the one comment and r=me afterwards.
src/bootstrap/dist.rs
Outdated
let cargofmt = builder.ensure(tool::Cargofmt { | ||
compiler: builder.compiler(stage, build.build), | ||
target | ||
}).expect("Rustfmt to build: toolstate is testing"); |
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.
Please change the expect statement here to "cargofmt" or something like that.
Signed-off-by: Marc-Antoine Perennou <[email protected]>
@bors: r=Mark-Simulacrum |
@Keruspe: 🔑 Insufficient privileges: Not in reviewers |
(I kind of expected that indeed, would have been surprised otherwise) |
@kennytm not waiting on bors yet, fwiw (wrt tags) |
@bors r+ |
📌 Commit b29a61e has been approved by |
|
rustbuild: distribute cargo-fmt alongside rustfmt Not sure whether we want that nor if it's the right way to do so, but it feels quite weird to have rustfmt without cargo-fmt. Or are there other plans wrt that? What do you think @nrc ?
Add rustfmt to the tools list r? @alexcrichton We should probably add something for cargo-fmt too once rust-lang/rust#46031 lands, but I'm not sure if we can just add it to the list or not, seeing as it is not its own component.
Add rustfmt to the tools list r? @alexcrichton We should probably add something for cargo-fmt too once rust-lang/rust#46031 lands, but I'm not sure if we can just add it to the list or not, seeing as it is not its own component.
Not sure whether we want that nor if it's the right way to do so, but it feels quite weird to have rustfmt without cargo-fmt. Or are there other plans wrt that?
What do you think @nrc ?