-
Couldn't load subscription status.
- Fork 13.9k
[WIP] rustc: push LocalDefId and/or assert_local calls farther back. #66132
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
Conversation
|
r? @cramertj (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
3ad56c0 to
d74b28a
Compare
This comment has been minimized.
This comment has been minimized.
…ocalDefId::from_def_id.
d74b28a to
b3c2aeb
Compare
|
☔ The latest upstream changes (presumably #66225) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Ping from triage: |
Based on #66131, see that PR for more details.
While working on #66131 I thought I'd replace a couple
DefIds withLocalDefIds to reduce the number ofassert_localcalls (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 returnLocalDefIdinstead ofDefId.