diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-06-07 15:21:29 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-06-09 12:27:56 +0300 |
| commit | 76a50706a8e19ecc253bb2a5749b1a3f4f5dc89d (patch) | |
| tree | 73d89a04dd717fb14aad16d8a24bee0164e0fc07 | |
| parent | 2416e222ecae76a36e958a8f7c4ac8083eb1ca45 (diff) | |
rustc: remove redundant krate field from lint::LateContext.
| -rw-r--r-- | src/librustc/lint/context.rs | 4 |
1 files changed, 0 insertions, 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), }; |
