Skip to content

Commit

Permalink
Rollup merge of rust-lang#55838 - dralley:fix-cfg-step, r=Kimundi
Browse files Browse the repository at this point in the history
Fix #[cfg] for step impl on ranges

```#[cfg(target_pointer_witdth = ...)]``` is misspelled
  • Loading branch information
kennytm committed Nov 23, 2018
2 parents 91bceb8 + 999c2e2 commit 738afd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcore/iter/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 738afd4

Please sign in to comment.