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

replace serialize with serde in rustdoc #62359

Merged
merged 1 commit into from
Dec 13, 2019
Merged

Conversation

euclio
Copy link
Contributor

@euclio euclio commented Jul 4, 2019

This is a slightly less aggressive version of #61028.

r? @GuillaumeGomez

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 4, 2019
#[derive(Serialize)]
struct CrateData<'a> {
doc: String,
#[serde(rename = "i")]
Copy link
Member

Choose a reason for hiding this comment

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

That makes it so much simpler to understand! \o/

@GuillaumeGomez
Copy link
Member

If the generated index is the same as before, then it's all good for me. I'd just prefer if @QuietMisdreavus took a look to confirm and then here we go. Thanks a lot!

@edmilsonefs
Copy link

Hey! This is a ping from triage, we would like to know if you @QuietMisdreavus could give us a few minutes to share your thoughts on it.

Thanks.

@Dylan-DPC-zz
Copy link

r? @QuietMisdreavus

&self.desc,
self.parent_idx,
&self.search_type,
)
Copy link
Member

Choose a reason for hiding this comment

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

Is a tuple the right construct for this? Do serialize_tuple and serialize_seq come out the same when run through serde_json?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They will be serialized the same way. This way, it saves the intermediate step of serializing everything to Value to make a Vec<Value>.

@bors
Copy link
Contributor

bors commented Aug 2, 2019

☔ The latest upstream changes (presumably #63207) made this pull request unmergeable. Please resolve the merge conflicts.

@totsteps
Copy link
Member

totsteps commented Aug 6, 2019

Ping from triage, @euclio please resolve the merge conflicts. Thanks

@euclio
Copy link
Contributor Author

euclio commented Aug 10, 2019

Rebased.

@JohnCSimon
Copy link
Member

Ping from triage
@QuietMisdreavus @GuillaumeGomez - can you please review this?

Thank you!

@GuillaumeGomez
Copy link
Member

Looks good to me. Just one question: is there any difference in term of performance?

@bors
Copy link
Contributor

bors commented Aug 19, 2019

☔ The latest upstream changes (presumably #63579) made this pull request unmergeable. Please resolve the merge conflicts.

@Mark-Simulacrum
Copy link
Member

I'm going to approve this per #62359 (comment) (and I've done my own review-ish, without trying to get into details of one to one compat).

@bors r+

We're still fairly early in the release cycle as well so if something comes up we can revert, and since I'll be touching some of this code in some of my PRs I'd like to avoid conflicts.

@bors
Copy link
Contributor

bors commented Aug 25, 2019

📌 Commit 972f0e07334917ea4690185a07b50c7ed557c5ea has been approved by Mark-Simulacrum

@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 Aug 25, 2019
@bors
Copy link
Contributor

bors commented Aug 25, 2019

⌛ Testing commit 972f0e07334917ea4690185a07b50c7ed557c5ea with merge 1675253b27b29808f17637a617b0edfe3e5374d5...

@bors
Copy link
Contributor

bors commented Aug 26, 2019

💔 Test failed - checks-azure

@rust-highfive
Copy link
Collaborator

The job dist-x86_64-freebsd of your PR failed (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
2019-08-25T23:02:47.9226087Z do so (now or later) by using -b with the checkout command again. Example:
2019-08-25T23:02:47.9226320Z 
2019-08-25T23:02:47.9226740Z   git checkout -b <new-branch-name>
2019-08-25T23:02:47.9226965Z 
2019-08-25T23:02:47.9227452Z HEAD is now at 1675253b2 Auto merge of #62359 - euclio:remove-serialize, r=Mark-Simulacrum
2019-08-25T23:02:47.9397173Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-08-25T23:02:47.9400230Z ==============================================================================
2019-08-25T23:02:47.9400335Z Task         : Bash
2019-08-25T23:02:47.9400574Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-08-26T00:25:40.7092544Z 115 | extern crate serde;
2019-08-26T00:25:40.7093627Z     | ^^^^^^^^^^^^^^^^^^^
2019-08-26T00:25:40.7093912Z     |
2019-08-26T00:25:40.7094215Z     = note: candidates:
2019-08-26T00:25:40.7094598Z             crate `serde_derive`: /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/release/deps/libserde_derive-27e74de8ef325fe1.so
2019-08-26T00:25:40.7095016Z             crate `serde_derive`: /checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools/release/deps/libserde_derive-ed16a85fe0a4b337.so
2019-08-26T00:25:40.7099943Z 
2019-08-26T00:25:40.7128251Z error[E0461]: couldn't find crate `serde_derive` with expected target triple x86_64-unknown-linux-gnu which `serde` depends on
2019-08-26T00:25:40.7130924Z     |
2019-08-26T00:25:40.7131205Z 115 | extern crate serde;
2019-08-26T00:25:40.7131502Z     | ^^^^^^^^^^^^^^^^^^^
2019-08-26T00:25:40.7131729Z     |
---
2019-08-26T00:25:40.8610490Z == clock drift check ==
2019-08-26T00:25:40.8630504Z   local time: Mon Aug 26 00:25:40 UTC 2019
2019-08-26T00:25:41.0176008Z   network time: Mon, 26 Aug 2019 00:25:41 GMT
2019-08-26T00:25:41.0178845Z == end clock drift check ==
2019-08-26T00:25:42.9536634Z ##[error]Bash exited with code '1'.
2019-08-26T00:25:42.9578911Z ##[section]Starting: Upload CPU usage statistics
2019-08-26T00:25:42.9585997Z ==============================================================================
2019-08-26T00:25:42.9586090Z Task         : Bash
2019-08-26T00:25:42.9586177Z Description  : Run a Bash script on macOS, Linux, or Windows

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@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 Aug 26, 2019
@Dylan-DPC-zz Dylan-DPC-zz 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 Aug 26, 2019
@Dylan-DPC-zz
Copy link

@euclio you need to address the failing tests

@Dylan-DPC-zz Dylan-DPC-zz 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 Nov 29, 2019
@Dylan-DPC-zz
Copy link

retrying it

@Dylan-DPC-zz
Copy link

@euclio any updates on this?

@euclio
Copy link
Contributor Author

euclio commented Dec 5, 2019

@Dylan-DPC Needs a retry, looks like the last one didn't happen.

@bors
Copy link
Contributor

bors commented Dec 5, 2019

☔ The latest upstream changes (presumably #66828) made this pull request unmergeable. Please resolve the merge conflicts.

@Dylan-DPC-zz
Copy link

@bors retry

@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 Dec 6, 2019
@bors
Copy link
Contributor

bors commented Dec 11, 2019

☔ The latest upstream changes (presumably #67198) made this pull request unmergeable. Please resolve the merge conflicts.

@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 Dec 11, 2019
@euclio
Copy link
Contributor Author

euclio commented Dec 13, 2019

Rebased.

@Dylan-DPC-zz
Copy link

@bors r+ rollup=never

@bors
Copy link
Contributor

bors commented Dec 13, 2019

📌 Commit 94630d4 has been approved by Dylan-DPC

@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 Dec 13, 2019
@bors
Copy link
Contributor

bors commented Dec 13, 2019

⌛ Testing commit 94630d4 with merge 703c82e...

bors added a commit that referenced this pull request Dec 13, 2019
replace serialize with serde in rustdoc

This is a slightly less aggressive version of #61028.

r? @GuillaumeGomez
@bors
Copy link
Contributor

bors commented Dec 13, 2019

☀️ Test successful - checks-azure
Approved by: Dylan-DPC
Pushing 703c82e to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 13, 2019
@bors bors merged commit 94630d4 into rust-lang:master Dec 13, 2019
@euclio euclio deleted the remove-serialize branch December 13, 2019 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.