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

Move gensym operations from Symbol to Ident #60903

Merged
merged 3 commits into from
May 21, 2019

Conversation

nnethercote
Copy link
Contributor

Gensyms are always at the Ident level, and long-term we probably want to record gensym-ness in hygiene data.

r? @petrochenkov

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 17, 2019
@@ -613,10 +613,12 @@ pub struct Ident {

impl Ident {
#[inline]
/// constructs a new identifier from a symbol and a span.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// constructs a new identifier from a symbol and a span.
/// Constructs a new identifier from a symbol and a span.

@petrochenkov
Copy link
Contributor

r=me after rebase

@petrochenkov petrochenkov 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 May 17, 2019
@nnethercote nnethercote force-pushed the mv-gensyms-from-Symbol-to-Ident branch from 17b5966 to ad5dd49 Compare May 19, 2019 23:09
@nnethercote
Copy link
Contributor Author

@bors try

@bors
Copy link
Contributor

bors commented May 19, 2019

⌛ Trying commit ad5dd49 with merge 139b5da...

bors added a commit that referenced this pull request May 19, 2019
…=<try>

Move gensym operations from `Symbol` to `Ident`

Gensyms are always at the `Ident` level, and long-term we probably want to record gensym-ness in hygiene data.

r? @petrochenkov
@nnethercote nnethercote force-pushed the mv-gensyms-from-Symbol-to-Ident branch from ad5dd49 to 8a96f26 Compare May 19, 2019 23:11
@bors
Copy link
Contributor

bors commented May 20, 2019

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

Note that the `is_gensymed` call on `primitive_types` is unnecessary
because that table only contains the name of primitive types (e.g.
`i32`) and never contains gensyms.
@nnethercote nnethercote force-pushed the mv-gensyms-from-Symbol-to-Ident branch from 8a96f26 to 88d2999 Compare May 20, 2019 04:47
@nnethercote
Copy link
Contributor Author

@bors try

@bors
Copy link
Contributor

bors commented May 20, 2019

⌛ Trying commit 88d2999 with merge e67ebe6...

bors added a commit that referenced this pull request May 20, 2019
…=<try>

Move gensym operations from `Symbol` to `Ident`

Gensyms are always at the `Ident` level, and long-term we probably want to record gensym-ness in hygiene data.

r? @petrochenkov
@bors
Copy link
Contributor

bors commented May 20, 2019

☀️ Try build successful - checks-travis
Build commit: e67ebe6

@nnethercote
Copy link
Contributor Author

@rust-timer build e67ebe6

@rust-timer
Copy link
Collaborator

Success: Queued e67ebe6 with parent 128b4c8, comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking try commit e67ebe6: comparison url

@nnethercote
Copy link
Contributor Author

It's a slight performance regression, but I think it's necessary to take at some point in order to move gensym-ness away from symbols. We've had a bunch of significantly larger performance improvements related to symbol handling recently, which more than make up for this.

@bors r=petrochenkov

@bors
Copy link
Contributor

bors commented May 21, 2019

📌 Commit 88d2999 has been approved by petrochenkov

@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 May 21, 2019
bors added a commit that referenced this pull request May 21, 2019
…=petrochenkov

Move gensym operations from `Symbol` to `Ident`

Gensyms are always at the `Ident` level, and long-term we probably want to record gensym-ness in hygiene data.

r? @petrochenkov
@bors
Copy link
Contributor

bors commented May 21, 2019

⌛ Testing commit 88d2999 with merge 50a0def...

@bors
Copy link
Contributor

bors commented May 21, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: petrochenkov
Pushing 50a0def to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 21, 2019
@bors bors merged commit 88d2999 into rust-lang:master May 21, 2019
@nnethercote nnethercote deleted the mv-gensyms-from-Symbol-to-Ident branch May 21, 2019 23:19
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.

5 participants