@@ -48,7 +48,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for PatternTypeMismatch {
4848 fn check_stmt ( & mut self , cx : & LateContext < ' a , ' tcx > , stmt : & ' tcx Stmt < ' _ > ) {
4949 if let StmtKind :: Local ( ref local) = stmt. kind {
5050 if let Some ( init) = & local. init {
51- if let Some ( init_ty) = cx. tables . node_type_opt ( init. hir_id ) {
51+ if let Some ( init_ty) = cx. tables ( ) . node_type_opt ( init. hir_id ) {
5252 let pat = & local. pat ;
5353 if in_external_macro ( cx. sess ( ) , pat. span ) {
5454 return ;
@@ -67,7 +67,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for PatternTypeMismatch {
6767 if let ExprKind :: Match ( ref expr, arms, source) = expr. kind {
6868 match source {
6969 MatchSource :: Normal | MatchSource :: IfLetDesugar { .. } | MatchSource :: WhileLetDesugar => {
70- if let Some ( expr_ty) = cx. tables . node_type_opt ( expr. hir_id ) {
70+ if let Some ( expr_ty) = cx. tables ( ) . node_type_opt ( expr. hir_id ) {
7171 ' pattern_checks: for arm in arms {
7272 let pat = & arm. pat ;
7373 if in_external_macro ( cx. sess ( ) , pat. span ) {
@@ -93,7 +93,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for PatternTypeMismatch {
9393 _: Span ,
9494 hir_id : HirId ,
9595 ) {
96- if let Some ( fn_sig) = cx. tables . liberated_fn_sigs ( ) . get ( hir_id) {
96+ if let Some ( fn_sig) = cx. tables ( ) . liberated_fn_sigs ( ) . get ( hir_id) {
9797 for ( param, ty) in body. params . iter ( ) . zip ( fn_sig. inputs ( ) . iter ( ) ) {
9898 apply_lint ( cx, & param. pat , ty, DerefPossible :: Impossible ) ;
9999 }
0 commit comments