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

Properly handle break resolution inside non-breakable expressions #13165

Merged
merged 4 commits into from
Sep 1, 2022

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Sep 1, 2022

We now diagnose invalid continue expressions and properly handle things like async blocks which prevent labels from resolving further. Cleaned this up since label_break_value is on the way to stabilization in rust (🎉 finally) and we weren't handling breaks for blocks properly yet.

@Veykril
Copy link
Member Author

Veykril commented Sep 1, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Sep 1, 2022

📌 Commit 8110119 has been approved by Veykril

It is now in the queue for this repository.

bors added a commit that referenced this pull request Sep 1, 2022
Properly handle break resolution inside non-breakable expressions

We now diagnose invalid `continue` expressions and properly handle things like `async` blocks which prevent labels from resolving further. Cleaned this up since `label_break_value` is on the way to stabilization in rust (🎉 finally) and we weren't handling breaks for blocks properly yet.
@bors
Copy link
Contributor

bors commented Sep 1, 2022

⌛ Testing commit 8110119 with merge 9b94934...

@bors
Copy link
Contributor

bors commented Sep 1, 2022

💔 Test failed - checks-actions

@Veykril
Copy link
Member Author

Veykril commented Sep 1, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Sep 1, 2022

📌 Commit c6b7f45 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 1, 2022

⌛ Testing commit c6b7f45 with merge c4445e4...

@bors
Copy link
Contributor

bors commented Sep 1, 2022

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

@bors bors merged commit c4445e4 into rust-lang:master Sep 1, 2022
@lnicola
Copy link
Member

lnicola commented Sep 1, 2022

Damn, that's a bad warning. IIRC, that flag is set in rust-lang/rust, at least for some of the code.

@Veykril
Copy link
Member Author

Veykril commented Sep 1, 2022

It's an odd warning, why is that even triggering in 2021 crates with that ... I hope rust-lang won't complain here ...

@Veykril Veykril deleted the breakables branch September 1, 2022 14:02
@lnicola
Copy link
Member

lnicola commented Sep 1, 2022

Yeah, rust-lang/rust#101284.

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.

3 participants