fix dogfood tests
This commit is contained in:
parent
05a6945adc
commit
b1f766b37b
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue