We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See https://github.com/gnzlbg/test_detect (to reproduce run cargo test with nightly).
#![unstable(feature = "stdsimd", issue = "27731")] #![feature(staged_api)] #[stable(feature = "simd_x86", since = "1.27.0")] #[macro_export] macro_rules! is_x86_feature_detected { ("foo") => { $crate::check($crate::Feature::foo) }; ("bar") => { $crate::check($crate::Feature::bar) }; } #[allow(non_camel_case_types)] #[repr(u8)] #[doc(hidden)] #[stable(feature = "simd_x86", since = "1.27.0")] // #[unstable(feature = "stdsimd_internal", issue = "0")] pub enum Feature { #[stable(feature = "simd_x86", since = "1.27.0")] foo, #[unstable(feature = "mmx_target_feature", issue = "44839")] bar, } #[stable(feature = "simd_x86", since = "1.27.0")] pub fn check(_: Feature) -> bool { true } /// Check that MMX fails without features /// /// ```rust,compile_fail /// #![feature(stdsimd)] /// #[macro_use(is_x86_feature_detected)] /// extern crate test_detect; /// /// fn main() { /// let _ = is_x86_feature_detected!("bar"); /// } /// ``` #[unstable(feature = "mmx_target_feature", issue = "44839")] #[allow(dead_code)] fn mmx_fails() {} /// Check that MMX passes when the feature is enabled /// /// ```rust /// #![feature(stdsimd, mmx_target_feature)] /// #[macro_use(is_x86_feature_detected)] /// extern crate test_detect; /// /// fn main() { /// let _ = is_x86_feature_detected!("bar"); /// } /// ``` #[unstable(feature = "mmx_target_feature", issue = "44839")] #[allow(dead_code)] fn mmx_passes() {} /// Check that MMX passes when variant without features is uses /// /// ```rust /// #![feature(stdsimd)] /// #[macro_use(is_x86_feature_detected)] /// extern crate test_detect; /// /// fn main() { /// let _ = is_x86_feature_detected!("foo"); /// } /// ``` #[unstable(feature = "mmx_target_feature", issue = "44839")] #[allow(dead_code)] fn mmx_passes2() {}
The mmx_passes doc test has the feature(mmx_target_feature) enabled, yet it still fails with:
mmx_passes
feature(mmx_target_feature)
Use of unstable library feature 'mmx_target_feature' (see issue #44839)
The text was updated successfully, but these errors were encountered:
No repro, these tests appear to pass without issue today.
~/projects/test_detect$ rustc --version --verbose rustc 1.52.0-nightly (0fc6756b4 2021-02-08) binary: rustc commit-hash: 0fc6756b42e0556cc2e18079f5fc6b4d58f4e81a commit-date: 2021-02-08 host: x86_64-unknown-linux-gnu release: 1.52.0-nightly LLVM version: 11.0.1
Possibly related to the MMX removal, or possibly #76842?
Sorry, something went wrong.
Triage: Closing as obsolete as per comment above.
No branches or pull requests
See https://github.com/gnzlbg/test_detect (to reproduce run cargo test with nightly).
The
mmx_passes
doc test has thefeature(mmx_target_feature)
enabled, yet it still fails with:The text was updated successfully, but these errors were encountered: