Fix macro in core

Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
This commit is contained in:
Caleb Zulawski 2021-09-22 19:45:09 -04:00 committed by Jubilee
parent 10168fb7c4
commit 98e4fcae5a

View file

@ -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;