1
Fork 0

Remove in_band_lifetimes from rustc_const_eval

See #91867 for more information.
This commit is contained in:
LegionMammal978 2021-12-13 22:34:51 -05:00
parent 8f117a77d0
commit a19eaf3542
17 changed files with 123 additions and 83 deletions

View file

@ -168,8 +168,8 @@ impl<'tcx> Visitor<'tcx> for Collector<'_, 'tcx> {
}
}
pub fn collect_temps_and_candidates(
ccx: &ConstCx<'mir, 'tcx>,
pub fn collect_temps_and_candidates<'tcx>(
ccx: &ConstCx<'_, 'tcx>,
rpo: &mut ReversePostorder<'_, 'tcx>,
) -> (IndexVec<Local, TempState>, Vec<Candidate>) {
let mut collector = Collector {
@ -191,7 +191,7 @@ struct Validator<'a, 'tcx> {
temps: &'a IndexVec<Local, TempState>,
}
impl std::ops::Deref for Validator<'a, 'tcx> {
impl<'a, 'tcx> std::ops::Deref for Validator<'a, 'tcx> {
type Target = ConstCx<'a, 'tcx>;
fn deref(&self) -> &Self::Target {