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

Update RLS and Rustfmt #53870

Merged
merged 3 commits into from
Sep 4, 2018
Merged

Update RLS and Rustfmt #53870

merged 3 commits into from
Sep 4, 2018

Conversation

Xanewok
Copy link
Member

@Xanewok Xanewok commented Aug 31, 2018

RLS

  • Allow project model to download crates (#1020)
  • Support simple external builds (#988)
  • Support using external Rustfmt (#990)

Rustfmt (0.99.4)

  • Format chains with comment (#2899)
  • Do not show wildcard pattern in slice pattern (#2912)
  • Impl only use (#2951)
  • ... and more

Bumped in tandem to pull a single version of rustc-ap-* libs.

r? @nrc

@rust-highfive
Copy link
Collaborator

⚠️ Warning ⚠️

  • These commits modify submodules.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 31, 2018
@kennytm
Copy link
Member

kennytm commented Sep 1, 2018

@bors r+ p=5

@bors
Copy link
Contributor

bors commented Sep 1, 2018

📌 Commit c6f7040268589155c9f30a5550114de49cad5649 has been approved by kennytm

@bors bors 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 Sep 1, 2018
@bors
Copy link
Contributor

bors commented Sep 1, 2018

⌛ Testing commit c6f7040268589155c9f30a5550114de49cad5649 with merge 59f30b9929998279d024c25e1fbea18659fb1ae6...

@bors
Copy link
Contributor

bors commented Sep 1, 2018

💔 Test failed - status-appveyor

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

kennytm commented Sep 1, 2018

[01:02:21] error[E0061]: this function takes 5 parameters but 4 parameters were supplied
[01:02:21]    --> tools\rls\src\build\rustc.rs:185:12
[01:02:21]     |
[01:02:21] 185 |         ls.register_group(Some(sess), true, name, to);
[01:02:21]     |            ^^^^^^^^^^^^^^ expected 5 parameters

@kennytm kennytm added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 1, 2018
@flip1995
Copy link
Member

flip1995 commented Sep 3, 2018

See #53762

for (name, (to, deprecated_name)) in lint_groups {
ls.register_group(Some(sess), true, name, deprecated_name, to);
}

EDIT: oops already done on rls master

@Xanewok
Copy link
Member Author

Xanewok commented Sep 3, 2018

Rebased and checked locally, should work with recent Clippy bump.

r? @kennytm

@rust-highfive rust-highfive assigned kennytm and unassigned nrc Sep 3, 2018
@kennytm
Copy link
Member

kennytm commented Sep 3, 2018

@bors r+ p=5

@bors
Copy link
Contributor

bors commented Sep 3, 2018

📌 Commit 5de69e2f5f1f244ecb35f357754042b97bca29f7 has been approved by kennytm

@bors bors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 3, 2018
@bors
Copy link
Contributor

bors commented Sep 3, 2018

🔒 Merge conflict

This pull request and the master branch diverged in a way that cannot be automatically merged. Please rebase on top of the latest master branch, and let the reviewer approve again.

How do I rebase?

Assuming self is your fork and upstream is this repository, you can resolve the conflict following these steps:

  1. git checkout update-rls (switch to your branch)
  2. git fetch upstream master (retrieve the latest master)
  3. git rebase upstream/master -p (rebase on top of it)
  4. Follow the on-screen instruction to resolve conflicts (check git status if you got lost).
  5. git push self update-rls --force-with-lease (update this PR)

You may also read Git Rebasing to Resolve Conflicts by Drew Blessing for a short tutorial.

Please avoid the "Resolve conflicts" button on GitHub. It uses git merge instead of git rebase which makes the PR commit history more difficult to read.

Sometimes step 4 will complete without asking for resolution. This is usually due to difference between how Cargo.lock conflict is handled during merge and rebase. This is normal, and you should still perform step 5 to update this PR.

Error message
warning: Cannot merge binary files: src/Cargo.lock (HEAD vs. heads/homu-tmp)
Auto-merging src/Cargo.lock
CONFLICT (content): Merge conflict in src/Cargo.lock
Automatic merge failed; fix conflicts and then commit the result.

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 3, 2018
This pulls the same version of rustc-ap-* libs as RLS does.
@Xanewok
Copy link
Member Author

Xanewok commented Sep 4, 2018

r? @kennytm, @oli-obk or @nrc

It seems that rustc doesn't like the not separated -Aclippy::all tool lint form (didn't compile crates with that, seems like a bug? cc @flip1995)

Hopefully RLS survives a couple of hours and makes it into nightlies 😄

EDIT: Rephrased the tool lint bit to clarify.

@oli-obk
Copy link
Contributor

oli-obk commented Sep 4, 2018

@bors r+

doesn't like not separated -Aclippy::all tool lint names

I think you mean it wants it separated, and doesn't like it without a space inbetween?

@bors
Copy link
Contributor

bors commented Sep 4, 2018

📌 Commit d5e5e76 has been approved by oli-obk

@bors bors 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 4, 2018
@Xanewok
Copy link
Member Author

Xanewok commented Sep 4, 2018

doesn't like it not separated -Aclippy::all tool lint names

Oops, I accidentally a word there, sorry!
Yeah, it likes them separated; it seems it doesn't work when using the -Aclippy::all form.

@bors
Copy link
Contributor

bors commented Sep 4, 2018

⌛ Testing commit d5e5e76 with merge 1c2e17f...

bors added a commit that referenced this pull request Sep 4, 2018
Update RLS and Rustfmt

RLS
* Allow project model to download crates ([#1020](rust-lang/rls#1020))
* Support simple external builds ([#988](rust-lang/rls#988))
* Support using external Rustfmt ([#990](rust-lang/rls#990))

Rustfmt (0.99.4)
* Format chains with comment ([#2899](https://github.com/rust-lang-nursery/rls/pull/2899))
* Do not show wildcard pattern in slice pattern ([#2912](https://github.com/rust-lang-nursery/rls/pull/2912))
* Impl only use ([#2951](https://github.com/rust-lang-nursery/rls/pull/2951))
* ... and [more](rust-lang/rustfmt@5c9a2b6...1c40881)

Bumped in tandem to pull a single version of `rustc-ap-*` libs.

r? @nrc
@bors
Copy link
Contributor

bors commented Sep 4, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: oli-obk
Pushing 1c2e17f to master...

@bors bors merged commit d5e5e76 into rust-lang:master Sep 4, 2018
@rust-highfive
Copy link
Collaborator

📣 Toolstate changed by #53870!

Tested on commit 1c2e17f.
Direct link to PR: #53870

🎉 rls on windows: build-fail → test-pass.
🎉 rls on linux: build-fail → test-pass.

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Sep 4, 2018
Tested on commit rust-lang/rust@1c2e17f.
Direct link to PR: <rust-lang/rust#53870>

🎉 rls on windows: build-fail → test-pass.
🎉 rls on linux: build-fail → test-pass.
@Xanewok Xanewok deleted the update-rls branch September 4, 2018 16:27
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.

7 participants