]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/expr_use_visitor.rs
Remove usage of global variable "inlined_types"
[rust.git] / src / librustc_typeck / expr_use_visitor.rs
index 030b8a6214948e74317aee4ceb51409f325b9f44..be00c57763a4efb0777ce298cedf691f05157b3a 100644 (file)
@@ -8,11 +8,12 @@
 // Export these here so that Clippy can use them.
 pub use mc::{Place, PlaceBase, Projection};
 
-use rustc::hir::def::Res;
-use rustc::hir::def_id::DefId;
-use rustc::hir::{self, PatKind};
 use rustc::infer::InferCtxt;
 use rustc::ty::{self, adjustment, TyCtxt};
+use rustc_hir as hir;
+use rustc_hir::def::Res;
+use rustc_hir::def_id::DefId;
+use rustc_hir::PatKind;
 
 use crate::mem_categorization as mc;
 use rustc_span::Span;
@@ -192,7 +193,7 @@ pub fn walk_expr(&mut self, expr: &hir::Expr<'_>) {
 
             hir::ExprKind::Type(ref subexpr, _) => self.walk_expr(subexpr),
 
-            hir::ExprKind::Unary(hir::UnDeref, ref base) => {
+            hir::ExprKind::Unary(hir::UnOp::UnDeref, ref base) => {
                 // *base
                 self.select_from_expr(base);
             }