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

Update lib.rs because of change in nightly #70

Closed
wants to merge 1 commit into from
Closed

Update lib.rs because of change in nightly #70

wants to merge 1 commit into from

Conversation

Ancient123
Copy link

Building with latest rust nightlies are throwing this error.

error: legacy asm! syntax is no longer supported
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subtle-2.2.2/src/lib.rs:150:14
    |
150 |     unsafe { asm!("" : "=r"(input) : "0"(input) ) }
    |              ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |              |
    |              help: replace with: `llvm_asm!

So I did the change. ¯_(ツ)_/¯

Building with latest rust nightlies are throwing this error.
```
error: legacy asm! syntax is no longer supported
   --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/subtle-2.2.2/src/lib.rs:150:14
    |
150 |     unsafe { asm!("" : "=r"(input) : "0"(input) ) }
    |              ----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |              |
    |              help: replace with: `llvm_asm!
```
So I did the change.  ¯\_(ツ)_/¯
@oleganza
Copy link

@Ancient123 hi, thanks for the patch! Could you please rebase this branch over develop branch instead of the master?

@Ancient123 Ancient123 changed the base branch from master to develop May 21, 2020 14:32
@Ancient123
Copy link
Author

Rebased!

@hdevalence
Copy link
Contributor

Thanks for the PR! I wonder whether rather than making this change, it might be better just to drop the nightly feature entirely and only have one implementation.

@oleganza
Copy link

@hdevalence i'd defer to you to decide whether inline asm actually helps.

@hdevalence
Copy link
Contributor

The fix for this compilation failure is included in #70, released as 2.2.3, so a cargo update should fix this!

@hdevalence hdevalence closed this May 29, 2020
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.

3 participants