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

Cannot find macro llvm_asm #225

Closed
imp opened this issue Apr 10, 2020 · 3 comments
Closed

Cannot find macro llvm_asm #225

imp opened this issue Apr 10, 2020 · 3 comments

Comments

@imp
Copy link

imp commented Apr 10, 2020

Since parking_lot was updated to 0.10.1 I am getting this error

error: cannot find macro `llvm_asm` in this scope
  --> /.../.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot-0.10.1/src/elision.rs:77:13
   |
77 |             llvm_asm!("xacquire; lock; cmpxchgq $2, $1"
   |             ^^^^^^^^

error: cannot find macro `llvm_asm` in this scope
   --> /.../.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot-0.10.1/src/elision.rs:108:13
    |
108 |             llvm_asm!("xrelease; lock; xaddq $2, $1"
    |             ^^^^^^^^

Perhaps there needs to be some guidance regarding the minimal Rust version where this macro is supported?

@Amanieu
Copy link
Owner

Amanieu commented Apr 10, 2020

This only happens if you are using the nightly feature. You need to update your nightly Rust.

@imp
Copy link
Author

imp commented Apr 10, 2020

I am having some other (unrelated) issues with the today's nightly. What is the earliest nightly that will work?

@Amanieu
Copy link
Owner

Amanieu commented Apr 10, 2020

The PR (rust-lang/rust#68404) landed on March 27, so any nightly after that.

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

No branches or pull requests

2 participants