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 String with Symbol where possible #80091

Merged
merged 1 commit into from
Dec 17, 2020

Conversation

GuillaumeGomez
Copy link
Member

The same as #80047 but on different types. Might be interesting to run some perf comparison.

r? @jyn514

@rust-highfive
Copy link
Collaborator

Some changes occurred in intra-doc-links.

cc @jyn514

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 16, 2020
@jyn514 jyn514 added C-cleanup Category: PRs that clean code up or issues documenting cleanup. I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Dec 16, 2020
Copy link
Member

@jyn514 jyn514 left a comment

Choose a reason for hiding this comment

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

This looks amazing, thanks so much ❤️

src/librustdoc/clean/auto_trait.rs Outdated Show resolved Hide resolved
src/librustdoc/clean/mod.rs Show resolved Hide resolved
src/librustdoc/clean/mod.rs Outdated Show resolved Hide resolved
src/librustdoc/clean/mod.rs Outdated Show resolved Hide resolved
src/librustdoc/clean/types.rs Outdated Show resolved Hide resolved
src/librustdoc/html/format.rs Outdated Show resolved Hide resolved
src/librustdoc/html/format.rs Outdated Show resolved Hide resolved
src/librustdoc/html/format.rs Outdated Show resolved Hide resolved
src/librustdoc/html/render/cache.rs Outdated Show resolved Hide resolved
Comment on lines +756 to 764
matches!(
*ns,
PerNS {
type_ns: Ok((Res::Def(DefKind::Trait, _), _)),
macro_ns: Ok((Res::Def(DefKind::Macro(MacroKind::Derive), _), _)),
..
}
)
}
Copy link
Member

Choose a reason for hiding this comment

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

This is weird, not sure why it changed :/ did you run the wrong version of rustfmt maybe?

Copy link
Member Author

Choose a reason for hiding this comment

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

No idea. I always run my "own" version, which isn't the best idea I think.

Copy link
Member

Choose a reason for hiding this comment

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

If you run x.py fmt it should work correctly.

@GuillaumeGomez
Copy link
Member Author

Updated! If it looks fine to you, I'll let you start the perf check. :3

@GuillaumeGomez
Copy link
Member Author

Sorry, can't wait, just want to know! ⏩

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@bors
Copy link
Contributor

bors commented Dec 16, 2020

⌛ Trying commit 50d221c with merge ed385fcba33dd70047504a3e0c0aadd0106d7e5a...

@bors
Copy link
Contributor

bors commented Dec 16, 2020

☀️ Try build successful - checks-actions
Build commit: ed385fcba33dd70047504a3e0c0aadd0106d7e5a (ed385fcba33dd70047504a3e0c0aadd0106d7e5a)

@rust-timer
Copy link
Collaborator

Queued ed385fcba33dd70047504a3e0c0aadd0106d7e5a with parent 2ba7ca2, future comparison URL.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 16, 2020
@rust-timer
Copy link
Collaborator

Finished benchmarking try commit (ed385fcba33dd70047504a3e0c0aadd0106d7e5a): comparison url.

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying rollup- to bors.

Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Dec 17, 2020
@jyn514
Copy link
Member

jyn514 commented Dec 17, 2020

Wow! -4.7% on instructions, -1.3% on max-rss :) Up to -6.2% on wall-times, although that's always variable.

@jyn514
Copy link
Member

jyn514 commented Dec 17, 2020

@bors r+ rollup=never

@bors
Copy link
Contributor

bors commented Dec 17, 2020

📌 Commit 50d221c has been approved by jyn514

@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 Dec 17, 2020
@bors
Copy link
Contributor

bors commented Dec 17, 2020

⌛ Testing commit 50d221c with merge bdd0a78...

@bors
Copy link
Contributor

bors commented Dec 17, 2020

☀️ Test successful - checks-actions
Approved by: jyn514
Pushing bdd0a78 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 17, 2020
@bors bors merged commit bdd0a78 into rust-lang:master Dec 17, 2020
@rustbot rustbot added this to the 1.50.0 milestone Dec 17, 2020
@GuillaumeGomez GuillaumeGomez deleted the str-to-symbol branch December 17, 2020 10:31
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 18, 2020
Continue String to Symbol conversion in rustdoc

Follow-up of rust-lang#80091.

This PR is already big enough so I'll stop here before the next one.

r? `@jyn514`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cleanup Category: PRs that clean code up or issues documenting cleanup. I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. 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. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants