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

internal: Intern projections in mir place #15575

Merged
merged 1 commit into from Sep 8, 2023
Merged

Conversation

HKalbasi
Copy link
Member

@HKalbasi HKalbasi commented Sep 8, 2023

I hope this reduces mir memory usage.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 8, 2023
@HKalbasi
Copy link
Member Author

HKalbasi commented Sep 8, 2023

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 8, 2023

📌 Commit 9708a29 has been approved by HKalbasi

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Sep 8, 2023

⌛ Testing commit 9708a29 with merge 548d2f0...

@bors
Copy link
Collaborator

bors commented Sep 8, 2023

☀️ Test successful - checks-actions
Approved by: HKalbasi
Pushing 548d2f0 to master...

@bors bors merged commit 548d2f0 into rust-lang:master Sep 8, 2023
10 checks passed
@Veykril
Copy link
Member

Veykril commented Sep 8, 2023

~60mb down on self 🎉

@lnicola lnicola changed the title Intern projections in mir place internal: Intern projections in mir place Sep 9, 2023
bors added a commit that referenced this pull request Oct 14, 2023
make mir::ProjectionStore-impls pub-accessible

When using RA as a crate the `mir::Place` `projection` is accessible, however there is no way to translate the `ProjectionId` to a `&[PlaceElem]`, as the `ProjectionId::lookup` is private.

Personally, I would only need the `ProjectionId::lookup`-fn to be `pub`, but I don't see any reason why the others should be kept private.. am I missing something `@HKalbasi` ?

Relates to: #15575
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants