Skip to content

llvm_asm macros was changed to an asm #27

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
Apr 15, 2022
Merged

llvm_asm macros was changed to an asm #27

merged 1 commit into from
Apr 15, 2022

Conversation

humb1t
Copy link
Contributor

@humb1t humb1t commented Apr 11, 2022

New versions of Rust nightly fail to build old code:

/clear_on_drop-0.2.4/src/hide.rs:38:17
   |
38 |                 llvm_asm!("" : : "r" (ptr as *mut u8) : "memory");
   |                 ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope

And rust-lang/rust#72965 which prevents fix of #23 was also resolved.
So I changed code back to asm usage with additional tweak - putting unused argument in comments.

@cesarb cesarb merged commit 4219eb8 into cesarb:master Apr 15, 2022
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.

2 participants