Skip to content

Conversation

@QuietMisdreavus
Copy link
Contributor

This totally confused me until i triple-checked the actual return value and opened the examples in the playground myself.

r? @rust-lang/docs

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

kennytm commented Nov 15, 2017

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Nov 15, 2017

📌 Commit 479b919 has been approved by kennytm

@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 15, 2017
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Nov 16, 2017
examples in Cow::into_owned don't need to wrap result in Cows

This totally confused me until i triple-checked the actual return value and opened the examples in the playground myself.

r? @rust-lang/docs
bors added a commit that referenced this pull request Nov 16, 2017
Rollup of 6 pull requests

- Successful merges: #45951, #45973, #45984, #45993, #46005, #46010
- Failed merges:
@bors bors merged commit 479b919 into rust-lang:master Nov 16, 2017
@durka
Copy link
Contributor

durka commented Nov 17, 2017

How did these tests possibly pass before? 🤔 Are doctests not run or are these missing a fence?

@QuietMisdreavus
Copy link
Contributor Author

Cow<'a, str> impl's PartialEq with a bunch of different permutations of string type. If you ran the old examples, they totally compiled and ran perfectly fine, because the trait was there, and the equality matched up just fine.

@QuietMisdreavus QuietMisdreavus deleted the anti-cow branch May 9, 2018 21:03
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.

4 participants