diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2021-09-22 19:45:09 -0400 |
|---|---|---|
| committer | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2021-10-11 13:18:59 -0700 |
| commit | 98e4fcae5aa0080d97901835e8391ec394acfef6 (patch) | |
| tree | e70eaac27758a4897d7bbcef2f7f16a4a3e8973c | |
| parent | 10168fb7c4ab6e8f02627331cc472a7a2b83c11b (diff) | |
| download | rust-98e4fcae5aa0080d97901835e8391ec394acfef6.tar.gz rust-98e4fcae5aa0080d97901835e8391ec394acfef6.zip | |
Fix macro in core
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
| -rw-r--r-- | crates/core_simd/src/swizzle.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crates/core_simd/src/swizzle.rs b/crates/core_simd/src/swizzle.rs index 048945ddffa..5ba9f3dec59 100644 --- a/crates/core_simd/src/swizzle.rs +++ b/crates/core_simd/src/swizzle.rs @@ -36,8 +36,7 @@ macro_rules! simd_shuffle { $vector:expr, $index:expr $(,)? } => { { - // FIXME this won't work when we are in `core`! - use $crate::Swizzle; + use $crate::simd::Swizzle; struct Shuffle; impl Swizzle<{$index.len()}, {$index.len()}> for Shuffle { const INDEX: [usize; {$index.len()}] = $index; @@ -49,8 +48,7 @@ macro_rules! simd_shuffle { $first:expr, $second:expr, $index:expr $(,)? } => { { - // FIXME this won't work when we are in `core`! - use $crate::{Which, Swizzle2}; + use $crate::simd::{Which, Swizzle2}; struct Shuffle; impl Swizzle2<{$index.len()}, {$index.len()}> for Shuffle { const INDEX: [Which; {$index.len()}] = $index; |
