Skip to content

Commit 302fb50

Browse files
committed
get rid of an unused 'span' field
1 parent 0bcefd9 commit 302fb50

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustc_mir/transform/promote_consts.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ struct Collector<'a, 'tcx> {
147147
ccx: &'a ConstCx<'a, 'tcx>,
148148
temps: IndexVec<Local, TempState>,
149149
candidates: Vec<Candidate>,
150-
span: Span,
151150
}
152151

153152
impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> {
@@ -254,10 +253,6 @@ impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> {
254253
_ => {}
255254
}
256255
}
257-
258-
fn visit_source_info(&mut self, source_info: &SourceInfo) {
259-
self.span = source_info.span;
260-
}
261256
}
262257

263258
pub fn collect_temps_and_candidates(
@@ -267,7 +262,6 @@ pub fn collect_temps_and_candidates(
267262
let mut collector = Collector {
268263
temps: IndexVec::from_elem(TempState::Undefined, &ccx.body.local_decls),
269264
candidates: vec![],
270-
span: ccx.body.span,
271265
ccx,
272266
};
273267
for (bb, data) in rpo {

0 commit comments

Comments
 (0)