Merge pull request #2683 from rust-lang-nursery/rustup

Rustup
This commit is contained in:
Oliver Schneider 2018-04-19 06:46:41 +02:00 committed by GitHub
commit f84cc2cc36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1798,7 +1798,7 @@ fn is_ref_iterable_type(cx: &LateContext, e: &Expr) -> bool {
fn is_iterable_array(ty: Ty) -> bool {
// IntoIterator is currently only implemented for array sizes <= 32 in rustc
match ty.sty {
ty::TyArray(_, n) => (0..=32).contains(n.val.to_raw_bits().expect("array length")),
ty::TyArray(_, n) => (0..=32).contains(&n.val.to_raw_bits().expect("array length")),
_ => false,
}
}