Fix #[cfg] for step impl on ranges
This commit is contained in:
parent
36a50c29f6
commit
999c2e2433
1 changed files with 4 additions and 4 deletions
|
|
@ -166,14 +166,14 @@ macro_rules! step_impl_no_between {
|
|||
}
|
||||
|
||||
step_impl_unsigned!(usize u8 u16);
|
||||
#[cfg(not(target_pointer_witdth = "16"))]
|
||||
#[cfg(not(target_pointer_width = "16"))]
|
||||
step_impl_unsigned!(u32);
|
||||
#[cfg(target_pointer_witdth = "16")]
|
||||
#[cfg(target_pointer_width = "16")]
|
||||
step_impl_no_between!(u32);
|
||||
step_impl_signed!([isize: usize] [i8: u8] [i16: u16]);
|
||||
#[cfg(not(target_pointer_witdth = "16"))]
|
||||
#[cfg(not(target_pointer_width = "16"))]
|
||||
step_impl_signed!([i32: u32]);
|
||||
#[cfg(target_pointer_witdth = "16")]
|
||||
#[cfg(target_pointer_width = "16")]
|
||||
step_impl_no_between!(i32);
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
step_impl_unsigned!(u64);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue