]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_lint/array_into_iter.rs
Rollup merge of #67875 - dtolnay:hidden, r=GuillaumeGomez
[rust.git] / src / librustc_lint / array_into_iter.rs
index b6075d165dd05a4cfebdfd458f188a08b4693ce7..46202cda16d50aefc7786c487db42092cd669d5f 100644 (file)
@@ -1,13 +1,10 @@
 use crate::lint::{LateContext, LateLintPass, LintArray, LintContext, LintPass};
-use rustc::{
-    hir,
-    lint::FutureIncompatibleInfo,
-    ty::{
-        self,
-        adjustment::{Adjust, Adjustment},
-    },
-};
-use syntax::{errors::Applicability, symbol::sym};
+use rustc::lint::FutureIncompatibleInfo;
+use rustc::ty;
+use rustc::ty::adjustment::{Adjust, Adjustment};
+use rustc_hir as hir;
+use rustc_span::symbol::sym;
+use syntax::errors::Applicability;
 
 declare_lint! {
     pub ARRAY_INTO_ITER,
@@ -25,7 +22,7 @@
 );
 
 impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ArrayIntoIter {
-    fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr) {
+    fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx hir::Expr<'tcx>) {
         // We only care about method call expressions.
         if let hir::ExprKind::MethodCall(call, span, args) = &expr.kind {
             if call.ident.name != sym::into_iter {