rustc: remove redundant krate field from lint::LateContext.

This commit is contained in:
Eduard-Mihai Burtescu 2017-06-07 15:21:29 +03:00
parent 2416e222ec
commit 76a50706a8

View File

@ -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),
};