Skip to content

fix: Inline asm fixes #20210

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 5 commits into from
Jul 10, 2025
Merged

Conversation

ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Jul 9, 2025

  • Make naked_asm!() safe to call.
  • Make global_asm!() actually work. I'm surprised nobody complained about that.

Fixes #20207.

There is no need to, it's already stored in the `kind`.
Because apparently, we were not accepting inline asm in item position, completely breaking it.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 9, 2025
@ChayimFriedman2
Copy link
Contributor Author

I feel like recently more of those tests started to timeout.

It's failing to much. We need to fix it, but my changes are unlikely to be the cause.
@ChayimFriedman2
Copy link
Contributor Author

ChayimFriedman2 commented Jul 9, 2025

I disabled the offending test. We need to see what's up with it.

We need it because `global_asm!()` is an item. It's unfortunate that such thing can slip in and I see no way to automatically catch that, but thankfully analysis-stats on self has caught that.
Copy link
Member

@ShoyuVanilla ShoyuVanilla left a comment

Choose a reason for hiding this comment

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

Looks good to me

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Jul 10, 2025
Merged via the queue into rust-lang:master with commit e9968fc Jul 10, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 10, 2025
@ChayimFriedman2 ChayimFriedman2 deleted the naked-asm-safe branch July 10, 2025 06:41
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.

naked_asm should be safe to call
3 participants