Skip to content
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

Distribute Rustfmt #45903

Merged
merged 2 commits into from
Nov 13, 2017
Merged

Distribute Rustfmt #45903

merged 2 commits into from
Nov 13, 2017

Conversation

nrc
Copy link
Member

@nrc nrc commented Nov 10, 2017

@Mark-Simulacrum Mark-Simulacrum changed the title Distrbute Rustfmt Distribute Rustfmt Nov 10, 2017
// Prepare the image directory
// We expect RLS to build, because we've exited this step above if tool
// state for RLS isn't testing.
let rustfmt = builder.ensure(tool::Rls {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't that be tool::Rustfmt?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

compiler: builder.compiler(stage, build.build),
target
}).expect("Rustfmt to build: toolstate is testing");
install(&rustfmt, &image.join("bin"), 0o755);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, this will only install the rustfmt binary (and not cargo-fmt, for example), is that intentional?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cargo fmt should be implementable as a stable tool with rustfmt distributed with rustup.

@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 10, 2017

if rls_present {
manifest.renames.insert("rls".to_owned(), Rename { to: "rls-preview".to_owned() });
}
if rustfmt_present {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can omit this b/c we didn't have rustfmt as a package originally, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@alexcrichton
Copy link
Member

Looks great!

@alexcrichton alexcrichton self-assigned this Nov 12, 2017
@nrc
Copy link
Member Author

nrc commented Nov 12, 2017

@alexcrichton updated to address comments

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Nov 13, 2017

📌 Commit 97d21e2 has been approved by alexcrichton

@kennytm kennytm added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 13, 2017
@bors
Copy link
Contributor

bors commented Nov 13, 2017

⌛ Testing commit 97d21e2 with merge e21df80...

bors added a commit that referenced this pull request Nov 13, 2017
@bors
Copy link
Contributor

bors commented Nov 13, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing e21df80 to master...

@bors bors merged commit 97d21e2 into rust-lang:master Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants