We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
s![]
1 parent f8522cf commit 05b781aCopy full SHA for 05b781a
src/slice.rs
@@ -842,15 +842,11 @@ macro_rules! s(
842
}
843
};
844
// empty call, i.e. `s![]`
845
- (@parse ::core::marker::PhantomData::<$crate::Ix0>, ::core::marker::PhantomData::<$crate::Ix0>, []) => {
+ (@parse $in_dim:expr, $out_dim:expr, []) => {
846
{
847
#[allow(unsafe_code)]
848
unsafe {
849
- $crate::SliceInfo::new_unchecked(
850
- [],
851
- ::core::marker::PhantomData::<$crate::Ix0>,
852
853
- )
+ $crate::SliceInfo::new_unchecked([], $in_dim, $out_dim)
854
855
856
0 commit comments