Skip to content

The Great Generics Generalisation: Ty Edition - #48523

Merged
bors merged 40 commits into
rust-lang:masterfrom
varkor:generics-ty-generalisations
May 16, 2018
Merged

The Great Generics Generalisation: Ty Edition#48523
bors merged 40 commits into
rust-lang:masterfrom
varkor:generics-ty-generalisations

Conversation

@varkor

Copy link
Copy Markdown
Contributor

Part of the generic parameter refactoring effort, split off from #48149. Contains the ty-relative refactoring.

r? @eddyb

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 25, 2018
@bors

bors commented Feb 25, 2018

Copy link
Copy Markdown
Collaborator

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

@borsbors 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 Feb 25, 2018
@varkor
varkorforce-pushed the generics-ty-generalisations branch 5 times, most recently from 2a0b89e to b4dbc02CompareFebruary 25, 2018 16:04
@shepmaster

Copy link
Copy Markdown
Member

Ping from triage, @varkor ! You have some merge conflicts you need to address, will you be able to get to those soon?

@varkor

Copy link
Copy Markdown
ContributorAuthor

@shepmaster: the merge conflicts should all be fairly routine (this code has a reasonably high bitrot rate) — I should be able to fix them without issue after a review, so I'll wait for now to avoid repeatedly fixing new conflicts as they arise.

@shepmastershepmaster 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 Mar 3, 2018
@shepmaster

Copy link
Copy Markdown
Member

Ping from triage, @eddyb !

Comment threadsrc/librustc/ty/mod.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This method can be inlined everywhere it's used.

Comment threadsrc/librustc_typeck/collect.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should ideally not allocate for "lifetimes" / "types".

Comment threadsrc/librustc/ty/mod.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Self should come before lifetimes, such that indexing is trivial.

Comment threadsrc/librustc/ty/subst.rs Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please do not call pack outside of the From impls.

@bors

bors commented Mar 6, 2018

Copy link
Copy Markdown
Collaborator

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

@borsbors 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 Mar 6, 2018
@varkor
varkorforce-pushed the generics-ty-generalisations branch from b4dbc02 to d0b0eb7CompareMarch 8, 2018 10:34
@bors

bors commented Mar 8, 2018

Copy link
Copy Markdown
Collaborator

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

@varkor
varkorforce-pushed the generics-ty-generalisations branch 2 times, most recently from 937afe9 to 689b927CompareMarch 8, 2018 12:12
@emilyalbiniemilyalbini 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 Mar 12, 2018
@emilyalbini

Copy link
Copy Markdown
Member

@eddyb ping from triage! This PR has new commits that needs to be reviewed.

@rust-highfive

This comment has been minimized.

@nikomatsakis

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented May 15, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 5be2bdb has been approved by nikomatsakis

@kennytm

Copy link
Copy Markdown
Member

@bors p=1

Unblocks #48149.

@bors

bors commented May 15, 2018

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 5be2bdb with merge e44fc6c...

@bors

bors commented May 16, 2018

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: nikomatsakis
Pushing e44fc6c to master...

@rust-highfive

Copy link
Copy Markdown
Contributor

📣 Toolstate changed by #48523!

Tested on commit e44fc6c.
Direct link to PR: #48523

💔 clippy-driver on windows: test-pass → build-fail (cc @Manishearth@llogiq@mcarton@oli-obk, @rust-lang/infra).
💔 clippy-driver on linux: test-pass → build-fail (cc @Manishearth@llogiq@mcarton@oli-obk, @rust-lang/infra).

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@varkor@bors@shepmaster@emilyalbini@nikomatsakis@rust-highfive@bombless@eddyb@kennytm