Uh oh!
There was an error while loading. Please reload this page.
rustbuild: distribute cargo-fmt alongside rustfmt - #46031
Conversation
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
kennytm
commented
Nov 18, 2017
r? @nrc |
nrc
commented
Nov 20, 2017
Thanks! Seems good to me, but r? @Mark-Simulacrum for the build system changes. |
Mark-Simulacrum
left a comment
There was a problem hiding this comment.
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.
| 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.
Please change the expect statement here to "cargofmt" or something like that.
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Keruspe
commented
Nov 20, 2017
@bors: r=Mark-Simulacrum |
bors
commented
Nov 20, 2017
@Keruspe: 🔑 Insufficient privileges: Not in reviewers |
Keruspe
commented
Nov 20, 2017
(I kind of expected that indeed, would have been surprised otherwise) |
Keruspe
commented
Nov 20, 2017
@kennytm not waiting on bors yet, fwiw (wrt tags) |
Mark-Simulacrum
commented
Nov 20, 2017
@bors r+ |
bors
commented
Nov 20, 2017
📌 Commit b29a61e has been approved by |
oli-obk
commented
Nov 20, 2017
|
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 ?