fix dogfood tests

This commit is contained in:
Oliver Schneider 2017-02-17 13:23:19 +01:00 committed by GitHub
parent 05a6945adc
commit b1f766b37b

View file

@ -531,8 +531,8 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for CastPass {
if let ExprLit(ref lit) = ex.node {
use syntax::ast::{LitKind, LitIntType};
match lit.node {
LitKind::Int(_, LitIntType::Unsuffixed) => (),
LitKind::FloatUnsuffixed(_) => (),
LitKind::Int(_, LitIntType::Unsuffixed) |
LitKind::FloatUnsuffixed(_) => {},
_ => {
if cast_from.sty == cast_to.sty && !in_external_macro(cx, expr.span) {
span_lint(cx,