Fix warnings

This commit is contained in:
Mateusz Mikuła 2018-06-28 13:33:11 +02:00
parent 656b26ea4f
commit b7d95f486b
2 changed files with 3 additions and 3 deletions

View File

@ -371,8 +371,8 @@ impl MiscEarly {
let mut seen = (false, false);
for ch in src.chars() {
match ch {
'a' ... 'f' => seen.0 = true,
'A' ... 'F' => seen.1 = true,
'a' ..= 'f' => seen.0 = true,
'A' ..= 'F' => seen.1 = true,
'i' | 'u' => break, // start of suffix already
_ => ()
}

View File

@ -5,7 +5,7 @@
use rustc::lint::{LateContext, LateLintPass, Lint, LintArray, LintPass};
use rustc::hir::*;
use rustc::hir::def::Def;
use rustc::ty::{self, TyRef, TypeFlags};
use rustc::ty::{self, TypeFlags};
use rustc::ty::adjustment::Adjust;
use rustc_errors::Applicability;
use rustc_typeck::hir_ty_to_ty;