Skip to content

internal: Resolve labels in body lowering #14509

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 2 commits into from
Apr 6, 2023

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Apr 6, 2023

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 6, 2023
@Veykril Veykril force-pushed the label-lower-body branch from 674d410 to 1395521 Compare April 6, 2023 11:39
@Veykril Veykril force-pushed the label-lower-body branch from 1395521 to 0e71179 Compare April 6, 2023 12:21
@Veykril Veykril marked this pull request as ready for review April 6, 2023 13:18
@Veykril
Copy link
Member Author

Veykril commented Apr 6, 2023

Ideally we'd also resolve the targets of break and continue expressions in here, but that will require changing how we allocate expressions. Right now we allocate an ID for an expression after having lowered it, to resolve the targets we'd need to preallocate IDs though. Alternatively we could do lowering and resolution separately, but that would introduce another IR -> more memory consumption which we really don't have a lot of budget for currently.

@HKalbasi this will probably create a bunch of collisions with your PR sorry 😅

@bors r+

@bors
Copy link
Contributor

bors commented Apr 6, 2023

📌 Commit fbb1bd5 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 6, 2023

⌛ Testing commit fbb1bd5 with merge 4ccc83a...

@bors
Copy link
Contributor

bors commented Apr 6, 2023

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

@bors bors merged commit 4ccc83a into rust-lang:master Apr 6, 2023
@Veykril Veykril deleted the label-lower-body branch April 6, 2023 14:17
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.

Many break-outside-of-loop false negatives
3 participants