Skip to content

Commit 98e4fca

Browse files
Fix macro in core
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
1 parent 10168fb commit 98e4fca

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

crates/core_simd/src/swizzle.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ macro_rules! simd_shuffle {
3636
$vector:expr, $index:expr $(,)?
3737
} => {
3838
{
39-
// FIXME this won't work when we are in `core`!
40-
use $crate::Swizzle;
39+
use $crate::simd::Swizzle;
4140
struct Shuffle;
4241
impl Swizzle<{$index.len()}, {$index.len()}> for Shuffle {
4342
const INDEX: [usize; {$index.len()}] = $index;
@@ -49,8 +48,7 @@ macro_rules! simd_shuffle {
4948
$first:expr, $second:expr, $index:expr $(,)?
5049
} => {
5150
{
52-
// FIXME this won't work when we are in `core`!
53-
use $crate::{Which, Swizzle2};
51+
use $crate::simd::{Which, Swizzle2};
5452
struct Shuffle;
5553
impl Swizzle2<{$index.len()}, {$index.len()}> for Shuffle {
5654
const INDEX: [Which; {$index.len()}] = $index;

0 commit comments

Comments
 (0)