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

Remove some usage of DUMMY_HIR_ID #71092

Merged
merged 5 commits into from
Apr 14, 2020

Conversation

marmeladema
Copy link
Contributor

No description provided.

…scope`

Calls to `assemble_extension_candidates_for_traits_in_scope` with
`DUMMY_HIR_ID` as `expr_hir_id` are useless because the first thing
that this function does is to return `Ok(())` in this case.
A valid hir id should always be returned in this case.
@rust-highfive
Copy link
Collaborator

r? @estebank

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 13, 2020
@marmeladema
Copy link
Contributor Author

r? @eddyb

@rust-highfive rust-highfive assigned eddyb and unassigned estebank Apr 13, 2020
@rust-highfive

This comment has been minimized.

Those usage ends up forwarded to a `ObligationClause` which uses
`CRATE_HIR_ID` for dummy value as seen in `ObligationClause::dummy`.
@marmeladema
Copy link
Contributor Author

I force-pushed to rerun the Azure CI that failed because of a network error. I hope its ok.

@eddyb
Copy link
Member

eddyb commented Apr 13, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Apr 13, 2020

📌 Commit e08ad7a has been approved by eddyb

@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 Apr 13, 2020
@eddyb
Copy link
Member

eddyb commented Apr 13, 2020

@bors r+

@bors
Copy link
Contributor

bors commented Apr 13, 2020

📌 Commit d0409ea has been approved by eddyb

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 13, 2020
Rollup of 4 pull requests

Successful merges:

 - rust-lang#70654 (Explain how to work with subtree)
 - rust-lang#71092 (Remove some usage of `DUMMY_HIR_ID`)
 - rust-lang#71103 (Add test case for type aliasing `impl Sized`)
 - rust-lang#71109 (allow const generics in const fn)

Failed merges:

r? @ghost
@bors bors merged commit 9de2a79 into rust-lang:master Apr 14, 2020
@marmeladema marmeladema deleted the dummy-hir-id-removal branch April 14, 2020 07:44
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.

5 participants