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

Lift out the module scope into a field in the Resolver #13174

Merged
merged 1 commit into from Sep 2, 2022

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Sep 2, 2022

A Resolver always has a module scope at the end of its scope stack,
instead of encoding this as an invariant we can just lift this scope
out into a field, allowing us to skip going through the scope vec
indirection entirely.

A Resolver *always* has a module scope at the end of its scope stack,
instead of encoding this as an invariant we can just lift this scope
out into a field, allowing us to skip going through the scope vec
indirection entirely.
@Veykril
Copy link
Member Author

Veykril commented Sep 2, 2022

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 2, 2022

📌 Commit 8828049 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 2, 2022

⌛ Testing commit 8828049 with merge f27f98d...

@bors
Copy link
Collaborator

bors commented Sep 2, 2022

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing f27f98d to master...

@bors bors merged commit f27f98d into rust-lang:master Sep 2, 2022
@Veykril Veykril deleted the resolver branch September 2, 2022 15:31
@Veykril
Copy link
Member Author

Veykril commented Sep 2, 2022

This saves 7mb memory on self 🎉 (small wins do count right?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants