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

[WIP] rustc: push LocalDefId and/or assert_local calls farther back. #66132

Closed
wants to merge 10 commits into from

Conversation

eddyb
Copy link
Member

@eddyb eddyb commented Nov 5, 2019

Based on #66131, see that PR for more details.

While working on #66131 I thought I'd replace a couple DefIds with LocalDefIds to reduce the number of assert_local calls (that don't obviously always succeed).

However, this ended up being a sprawling refactor, so I split it into its own PR.

We can probably do a lot more than what I did here, especially if we fix e.g. tcx.hir().local_def_id(...) to return LocalDefId instead of DefId.

@rust-highfive
Copy link
Collaborator

r? @cramertj

(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 Nov 5, 2019
@petrochenkov petrochenkov self-assigned this Nov 5, 2019
@bors

This comment has been minimized.

@petrochenkov petrochenkov removed their assignment Nov 6, 2019
@bors

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Nov 8, 2019

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

@JohnCSimon JohnCSimon 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 Nov 16, 2019
@JohnCSimon
Copy link
Member

Ping from triage:
@eddyb You have some merge conflicts.
cc: @cramertj
Thanks.

@joelpalmer
Copy link

Ping from triage: @eddyb any updates? cc: @cramertj Thanks!

@JohnCSimon JohnCSimon added the S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs. label Dec 7, 2019
@JohnCSimon
Copy link
Member

Ping from triage:
@eddyb
This hasn't been touched in a month, so I'm going to mark this as inactive. Feel free to reopen when you have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants