Skip to content

Use HirId in TraitCandidate.#69108

Merged
bors merged 2 commits intorust-lang:masterfrom
cjgillot:trait_candidate
Feb 14, 2020
Merged

Use HirId in TraitCandidate.#69108
bors merged 2 commits intorust-lang:masterfrom
cjgillot:trait_candidate

Conversation

@cjgillot
Copy link
Copy Markdown
Contributor

I had to duplicate the TraitMap type to hold NodeIds until AST->HIR lowering is done.

r? @Zoxc

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 12, 2020
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.

I think this method can just return the fields of TraitCandidate now.

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.

Maybe just leave it like this for now.

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.

You could make this generic over the id instead of duplicating it.

@bors
Copy link
Copy Markdown
Collaborator

bors commented Feb 13, 2020

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

@Zoxc
Copy link
Copy Markdown
Contributor

Zoxc commented Feb 13, 2020

@bors r+

@bors
Copy link
Copy Markdown
Collaborator

bors commented Feb 13, 2020

📌 Commit 2a899e2 has been approved by Zoxc

@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 Feb 13, 2020
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Feb 13, 2020
Use HirId in TraitCandidate.

I had to duplicate the `TraitMap` type to hold `NodeId`s until AST->HIR lowering is done.

r? @Zoxc
bors added a commit that referenced this pull request Feb 13, 2020
Rollup of 9 pull requests

Successful merges:

 - #68728 (parse: merge `fn` syntax + cleanup item parsing)
 - #68938 (fix lifetime shadowing check in GATs)
 - #69057 (expand: misc cleanups and simplifications)
 - #69108 (Use HirId in TraitCandidate.)
 - #69125 (Add comment to SGX entry code)
 - #69126 (miri: fix exact_div)
 - #69127 (Enable use after scope detection in the new LLVM pass manager)
 - #69135 (Spelling error "represening" to "representing")
 - #69141 (Don't error on network failures)

Failed merges:

r? @ghost
@bors bors merged commit 2a899e2 into rust-lang:master Feb 14, 2020
@cjgillot cjgillot deleted the trait_candidate branch February 14, 2020 07:30
bors added a commit that referenced this pull request Feb 15, 2020
Revert #69108

... to see if it caused the regression in #69197.

@bors try
@rust-timer queue
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