Skip to content

Commit

Permalink
Fix macro in core
Browse files Browse the repository at this point in the history
Co-authored-by: Jubilee <[email protected]>
  • Loading branch information
calebzulawski and workingjubilee committed Oct 11, 2021
1 parent 10168fb commit 98e4fca
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/core_simd/src/swizzle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 98e4fca

Please sign in to comment.