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

resolve: Partially unify early and late scope-relative identifier resolution #83103

Merged
merged 1 commit into from
Mar 28, 2021

Conversation

petrochenkov
Copy link
Contributor

@petrochenkov petrochenkov commented Mar 14, 2021

Reuse early_resolve_ident_in_lexical_scope instead of a chunk of code in resolve_ident_in_lexical_scope doing the same job.

early_resolve_ident_in_lexical_scope/visit_scopes had to be slightly extended to be able to 1) start from a specific module instead of the current parent scope and 2) report one deprecation lint.
early_resolve_ident_in_lexical_scope still doesn't support walking through "ribs", that part is left in resolve_ident_in_lexical_scope (moreover, I'm pretty sure it's buggy, but that's a separate issue, cc #52389 at least).

@rust-highfive
Copy link
Collaborator

r? @lcnr

(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 Mar 14, 2021
@rust-log-analyzer

This comment has been minimized.

@petrochenkov petrochenkov 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 14, 2021
@petrochenkov petrochenkov 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 14, 2021
Copy link
Contributor

@lcnr lcnr left a comment

Choose a reason for hiding this comment

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

this looks fairly good to me but I have pretty much no experience with early resolution.

not sure who is more knowledgeable here, maybe
r? @Aaron1011

@lcnr lcnr assigned Aaron1011 and unassigned lcnr Mar 20, 2021
@Aaron1011
Copy link
Member

r=me with the comment added.

@petrochenkov
Copy link
Contributor Author

@bors r=Aaron1011

@bors
Copy link
Contributor

bors commented Mar 27, 2021

📌 Commit ee0357a has been approved by Aaron1011

@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 Mar 27, 2021
@bors
Copy link
Contributor

bors commented Mar 27, 2021

⌛ Testing commit ee0357a with merge 8cd7d86...

@bors
Copy link
Contributor

bors commented Mar 28, 2021

☀️ Test successful - checks-actions
Approved by: Aaron1011
Pushing 8cd7d86 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Mar 28, 2021
@bors bors merged commit 8cd7d86 into rust-lang:master Mar 28, 2021
@rustbot rustbot added this to the 1.53.0 milestone Mar 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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.

7 participants