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

SliceConcatExt::connect defaults to calling join #61146

Merged

Conversation

czipperz
Copy link
Contributor

@czipperz czipperz commented May 25, 2019

It makes sense to default a deprecated method to the new one. Precedence example is Error::cause defaults to calling Error::source.

@rust-highfive
Copy link
Collaborator

r? @Kimundi

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 25, 2019
@czipperz

This comment has been minimized.

1 similar comment
@czipperz

This comment has been minimized.

@Centril
Copy link
Contributor

Centril commented Jun 10, 2019

r? @sfackler

@rust-highfive rust-highfive assigned sfackler and unassigned Kimundi Jun 10, 2019
@sfackler
Copy link
Member

No one externally should be implementing this trait - what's the value in making this change?

@Centril Centril 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 Jun 10, 2019
@czipperz
Copy link
Contributor Author

czipperz commented Jun 10, 2019

It reduces code duplication. And it won't be a breaking change.

@Centril Centril added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jun 10, 2019
@czipperz
Copy link
Contributor Author

We also have precedence of when Error::cause was redone as Error::source it gained a default implementation that forwarded to Error::source.

@sfackler
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jun 18, 2019

📌 Commit 3dd114e has been approved by sfackler

@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 Jun 18, 2019
@bors
Copy link
Contributor

bors commented Jun 18, 2019

⌛ Testing commit 3dd114e with merge 79c337b8cde437ca1c625ba96661be100806eb1e...

@bors
Copy link
Contributor

bors commented Jun 18, 2019

💔 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 Jun 18, 2019
pietroalbini added a commit to pietroalbini/rust that referenced this pull request Jun 21, 2019
…ault-to-join, r=sfackler

SliceConcatExt::connect defaults to calling join

It makes sense to default a deprecated method to the new one.  Precedence example is `Error::cause` defaults to calling `Error::source`.
Centril added a commit to Centril/rust that referenced this pull request Jun 21, 2019
…ault-to-join, r=sfackler

SliceConcatExt::connect defaults to calling join

It makes sense to default a deprecated method to the new one.  Precedence example is `Error::cause` defaults to calling `Error::source`.
@pietroalbini
Copy link
Member

@bors r-

@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-review Status: Awaiting review from the assignee but also interested parties. labels Jun 21, 2019
@czipperz
Copy link
Contributor Author

What's wrong?

@pietroalbini
Copy link
Member

Oh, that was a spurious failure, sorry! Had to explicitly unapprove failed PRs a few hours ago due to a bors bug, but I didn't look too closely if they were caused by spurious failures.

@bors r=sfackler

@bors
Copy link
Contributor

bors commented Jun 21, 2019

📌 Commit 3dd114e has been approved by sfackler

@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 Jun 21, 2019
Centril added a commit to Centril/rust that referenced this pull request Jun 21, 2019
…ault-to-join, r=sfackler

SliceConcatExt::connect defaults to calling join

It makes sense to default a deprecated method to the new one.  Precedence example is `Error::cause` defaults to calling `Error::source`.
bors added a commit that referenced this pull request Jun 22, 2019
Rollup of 9 pull requests

Successful merges:

 - #60971 (Add DocFS layer to rustdoc)
 - #61146 (SliceConcatExt::connect defaults to calling join)
 - #61181 (Fix theme-checker failure)
 - #61267 (rustc-book: Update the rustc/clang compatibility table for xLTO.)
 - #61270 (Remove warnings about incr. comp. generating less debugging output.)
 - #61681 (Changed the error message to more clearly explain what is allowed)
 - #61984 (More NodeId pruning)
 - #62016 (Add test for issue-27697)
 - #62019 (Remove needless lifetimes)

Failed merges:

r? @ghost
@bors bors merged commit 3dd114e into rust-lang:master Jun 22, 2019
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