diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-08-13 00:00:00 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2022-08-22 22:40:39 +0200 |
| commit | 39f73ac0b3b83d24bbf895fb23fd7a23b3991d48 (patch) | |
| tree | a71cf07894725178c9772b591bacd33261381082 /library/stdarch/crates/std_detect | |
| parent | 86061fc0806e7d853dd06b741b27de683094f383 (diff) | |
| download | rust-39f73ac0b3b83d24bbf895fb23fd7a23b3991d48.tar.gz rust-39f73ac0b3b83d24bbf895fb23fd7a23b3991d48.zip | |
Allow internal use of stdsimd from detect_feature
This allows using feature detection macros, without placing a requirement of enabled stdsimd feature gate from end users. A follow-up to changes from #1311, which introduced the new macro.
Diffstat (limited to 'library/stdarch/crates/std_detect')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/macros.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/macros.rs b/library/stdarch/crates/std_detect/src/detect/macros.rs index 213e63ec550..a467f9db605 100644 --- a/library/stdarch/crates/std_detect/src/detect/macros.rs +++ b/library/stdarch/crates/std_detect/src/detect/macros.rs @@ -1,4 +1,5 @@ #[macro_export] +#[allow_internal_unstable(stdsimd)] macro_rules! detect_feature { ($feature:tt, $feature_lit:tt) => { $crate::detect_feature!($feature, $feature_lit : $feature_lit) |
