Skip to content

Commit 118308e

Browse files
committed
Remove unused EverInitializedPlaces::tcx field.
1 parent dc365e8 commit 118308e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

compiler/rustc_borrowck/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ fn do_mir_borrowck<'tcx>(
288288
.into_engine(tcx, body)
289289
.pass_name("borrowck")
290290
.iterate_to_fixpoint();
291-
let flow_ever_inits = EverInitializedPlaces::new(tcx, body, &mdpe)
291+
let flow_ever_inits = EverInitializedPlaces::new(body, &mdpe)
292292
.into_engine(tcx, body)
293293
.pass_name("borrowck")
294294
.iterate_to_fixpoint();

compiler/rustc_mir_dataflow/src/impls/initialized.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,13 @@ impl<'a, 'tcx> HasMoveData<'tcx> for DefinitelyInitializedPlaces<'a, 'tcx> {
250250
/// }
251251
/// ```
252252
pub struct EverInitializedPlaces<'a, 'tcx> {
253-
#[allow(dead_code)]
254-
tcx: TyCtxt<'tcx>,
255253
body: &'a Body<'tcx>,
256254
mdpe: &'a MoveDataParamEnv<'tcx>,
257255
}
258256

259257
impl<'a, 'tcx> EverInitializedPlaces<'a, 'tcx> {
260-
pub fn new(tcx: TyCtxt<'tcx>, body: &'a Body<'tcx>, mdpe: &'a MoveDataParamEnv<'tcx>) -> Self {
261-
EverInitializedPlaces { tcx, body, mdpe }
258+
pub fn new(body: &'a Body<'tcx>, mdpe: &'a MoveDataParamEnv<'tcx>) -> Self {
259+
EverInitializedPlaces { body, mdpe }
262260
}
263261
}
264262

0 commit comments

Comments
 (0)