get rid of an unused 'span' field

This commit is contained in:
Ralf Jung 2020-05-31 14:47:54 +02:00
parent 0bcefd9b5e
commit 302fb5039b

View file

@ -147,7 +147,6 @@ struct Collector<'a, 'tcx> {
ccx: &'a ConstCx<'a, 'tcx>,
temps: IndexVec<Local, TempState>,
candidates: Vec<Candidate>,
span: Span,
}
impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> {
@ -254,10 +253,6 @@ impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> {
_ => {}
}
}
fn visit_source_info(&mut self, source_info: &SourceInfo) {
self.span = source_info.span;
}
}
pub fn collect_temps_and_candidates(
@ -267,7 +262,6 @@ pub fn collect_temps_and_candidates(
let mut collector = Collector {
temps: IndexVec::from_elem(TempState::Undefined, &ccx.body.local_decls),
candidates: vec![],
span: ccx.body.span,
ccx,
};
for (bb, data) in rpo {