Skip to content

fix: Improve asm support #19801

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
May 16, 2025
Merged

Conversation

ChayimFriedman2
Copy link
Contributor

Including:

  • Infer label {} and const operands.
  • Correctly handle unsafe check inside label {}.
  • Fix an embarrassing parser typo that cause labels to never be part of the AST

Our story began when I saw, in the release notes for Rust 1.87, that label {} in inline assembly was stabilized, and recalled that I read that the lang team decided that label {} blocks will start a new safety scope. Quick glance at the reference, yep that rule is there. Trying to check whether we comply to it in r-a, no we don't. Fixing is simple - unless, as it turns out, we don't support label almost at all (+ const), including a very funny parser typo.

Including:

 - Infer `label {}` and `const` operands.
 - Correctly handle unsafe check inside `label {}`.
 - Fix an embarrassing parser typo that cause labels to never be part of the AST
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 15, 2025
@Veykril Veykril added this pull request to the merge queue May 16, 2025
Merged via the queue into rust-lang:master with commit b25cef8 May 16, 2025
14 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the asm-label branch May 17, 2025 21: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.

3 participants