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

rustc nightlies break on any dependency that relies on parking_lot 0.9 #26644

Closed
jdm opened this issue May 25, 2020 · 2 comments
Closed

rustc nightlies break on any dependency that relies on parking_lot 0.9 #26644

jdm opened this issue May 25, 2020 · 2 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented May 25, 2020

error: legacy asm! syntax is no longer supported
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot-0.9.0/src/elision.rs:70:13
   |
70 |               asm!("xacquire; lock; cmpxchgq $2, $1"
   |               ^---
   |               |
   |  _____________help: replace with: `llvm_asm!`
   | |
71 | |                  : "={rax}" (prev), "+*m" (self)
72 | |                  : "r" (new), "{rax}" (current)
73 | |                  : "memory"
74 | |                  : "volatile");
   | |_______________________________^
error: legacy asm! syntax is no longer supported
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/parking_lot-0.9.0/src/elision.rs:97:13
    |
97  |               asm!("xrelease; lock; xaddq $2, $1"
    |               ^---
    |               |
    |  _____________help: replace with: `llvm_asm!`
    | |
98  | |                  : "=r" (prev), "+*m" (self)
99  | |                  : "0" (val.wrapping_neg())
100 | |                  : "memory"
101 | |                  : "volatile");
    | |_______________________________^
error: aborting due to 2 previous errors
error: could not compile `parking_lot`.

This is a hard error in the compiler, not a warning that we can ignore. We can't upgrade our rustc nightly until we update beyond:

We can also remove the use of the nightly feature from layout_thread and layout_thread_2020 which allows the build to complete.

@SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented May 26, 2020

If I remember correctly use of inline assembly is an optional optimization in parking_lot. Disabling it might be another option, if updating past 0.9 proves difficult.

@SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented May 26, 2020

Ah sorry, you already wrote the same at the end of your message.

@SimonSapin SimonSapin mentioned this issue May 26, 2020
7 of 7 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.