From 76a50706a8e19ecc253bb2a5749b1a3f4f5dc89d Mon Sep 17 00:00:00 2001 From: Eduard-Mihai Burtescu Date: Wed, 7 Jun 2017 15:21:29 +0300 Subject: [PATCH] rustc: remove redundant krate field from lint::LateContext. --- src/librustc/lint/context.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs index 2022565d533..b14f549cbf6 100644 --- a/src/librustc/lint/context.rs +++ b/src/librustc/lint/context.rs @@ -411,9 +411,6 @@ pub struct LateContext<'a, 'tcx: 'a> { /// Side-tables for the body we are in. pub tables: &'a ty::TypeckTables<'tcx>, - /// The crate being checked. - pub krate: &'a hir::Crate, - /// Items accessible from the crate being checked. pub access_levels: &'a AccessLevels, @@ -1330,7 +1327,6 @@ pub fn check_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) { let mut cx = LateContext { tcx: tcx, tables: &ty::TypeckTables::empty(), - krate: krate, access_levels: access_levels, lint_sess: LintSession::new(&tcx.sess.lint_store), };