Skip to content

Conversation

ChristianSchott
Copy link
Contributor

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

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 14, 2023
@@ -267,13 +267,13 @@ impl ProjectionStore {
}

impl ProjectionId {
const EMPTY: ProjectionId = ProjectionId(0);
pub const EMPTY: ProjectionId = ProjectionId(0);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not 100% sure about this, as it can be accessed indirectly via From<LocalId>..

@HKalbasi
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Oct 14, 2023

📌 Commit 8217ff9 has been approved by HKalbasi

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 14, 2023

⌛ Testing commit 8217ff9 with merge dbe5392...

@bors
Copy link
Contributor

bors commented Oct 14, 2023

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

@bors bors merged commit dbe5392 into rust-lang:master Oct 14, 2023
@lnicola lnicola changed the title make mir::ProjectionStore-impls pub-accessible internal: make mir::ProjectionStore-impls pub-accessible Oct 15, 2023
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.

4 participants