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

cargo test is broken on non-x86 #35

Closed
ignatenkobrain opened this issue Jun 3, 2020 · 1 comment · Fixed by #36
Closed

cargo test is broken on non-x86 #35

ignatenkobrain opened this issue Jun 3, 2020 · 1 comment · Fixed by #36

Comments

@ignatenkobrain
Copy link

error[E0658]: use of unstable library feature 'stdsimd'
   --> tests/test.rs:394:29
    |
394 |                     let _ = is_x86_feature_detected!($feat);
    |                             ^^^^^^^^^^^^^^^^^^^^^^^
...
400 |     my_is_x86_feature_detected!("mmx");
    |     ----------------------------------- in this macro invocation
    |
    = note: see issue #27731 <https://github.com/rust-lang/rust/issues/27731> for more information
    = help: add `#![feature(stdsimd)]` to the crate attributes to enable
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: 
        is_x86_feature_detected can only be used on x86 and x86_64 targets.
        You can prevent it from being used in other architectures by
        guarding it behind a cfg(target_arch) as follows:
            #[cfg(any(target_arch = "x86", target_arch = "x86_64"))] {
                if is_x86_feature_detected(...) { ... }
            }
        
   --> tests/test.rs:400:5
    |
400 |     my_is_x86_feature_detected!("mmx");
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

This was fine on 0.1.14, but not on 0.1.15.

@dtolnay
Copy link
Owner

dtolnay commented Jun 3, 2020

Sorry about that, fixed in 0.1.16.

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 a pull request may close this issue.

2 participants