Skip to content

Conversation

@mcarton
Copy link
Contributor

@mcarton mcarton commented Mar 31, 2016

Ok(ConstVal::Integral(Usize(Us64(i)))) => i as u32 as u64 != i,
Ok(ConstVal::Integral(Isize(Is64(i)))) => i as i32 as i64 != i,
Ok(ConstVal::Integral(ConstInt::Usize(ConstUsize::Us64(i)))) => i as u32 as u64 != i,
Ok(ConstVal::Integral(ConstInt::Isize(ConstIsize::Is64(i)))) => i as i32 as i64 != i,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change should not be necessary, but rather line 36 should be use rustc_const_math::*. I'm not sure why the unused import doesn't lint on that.

@mcarton mcarton merged commit 62bc642 into rust-lang:master Mar 31, 2016
@mcarton mcarton deleted the rustup branch March 31, 2016 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants