Skip to content

fix: Properly prevent mir building with unknown types present #18067

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

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Sep 6, 2024

No description provided.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 6, 2024
@Veykril Veykril force-pushed the prevent-mir-building branch from a01cfba to a1ea7f1 Compare September 6, 2024 07:44
@Veykril
Copy link
Member Author

Veykril commented Sep 6, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Sep 6, 2024

📌 Commit a1ea7f1 has been approved by Veykril

It is now in the queue for this repository.

@Veykril
Copy link
Member Author

Veykril commented Sep 6, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Sep 6, 2024

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented Sep 6, 2024

📌 Commit a1ea7f1 has been approved by Veykril

It is now in the queue for this repository.

bors added a commit that referenced this pull request Sep 6, 2024
fix: Properly prevent mir building with unknown types present
@bors
Copy link
Contributor

bors commented Sep 6, 2024

⌛ Testing commit a1ea7f1 with merge 3af3845...

@bors
Copy link
Contributor

bors commented Sep 6, 2024

💔 Test failed - checks-actions

@ChayimFriedman2
Copy link
Contributor

Preventing building of all MIR seems too much, we have some IDE features relying on MIR and it'll be a shame if they won't work (or work incorrectly) for incomplete code.

Instead, we should be more relaxed in MIR lowering, and allow improper HIR in it.

@Veykril Veykril force-pushed the prevent-mir-building branch from a6a9b13 to d2aa2c0 Compare September 6, 2024 11:30
@Veykril
Copy link
Member Author

Veykril commented Sep 6, 2024

Instead, we should be more relaxed in MIR lowering, and allow improper HIR in it.

I don't disagree but I've been unable to locate the exact cause of us hitting the tuple field requires tuple type never! path

@Veykril Veykril force-pushed the prevent-mir-building branch from d2aa2c0 to 0a7d3d8 Compare September 6, 2024 11:58
@Veykril Veykril force-pushed the prevent-mir-building branch from 0a7d3d8 to 7c52759 Compare September 6, 2024 12:44
@Veykril
Copy link
Member Author

Veykril commented Sep 6, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Sep 6, 2024

📌 Commit 7c52759 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 6, 2024

⌛ Testing commit 7c52759 with merge 08c7bbc...

@bors
Copy link
Contributor

bors commented Sep 6, 2024

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

@bors bors merged commit 08c7bbc into rust-lang:master Sep 6, 2024
11 checks passed
@Veykril Veykril deleted the prevent-mir-building branch September 6, 2024 14:41
@Veykril Veykril restored the prevent-mir-building branch September 9, 2024 11:37
@Veykril Veykril deleted the prevent-mir-building branch September 9, 2024 11:38
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