BasicBlock, Body, ClosureOutlivesSubject, ClosureRegionRequirements, LocalKind, Location,
Promoted,
};
-use rustc_middle::ty::{self, OpaqueTypeKey, RegionKind, RegionVid, Ty};
+use rustc_middle::ty::{self, OpaqueTypeKey, Region, RegionVid, Ty};
use rustc_span::symbol::sym;
use std::env;
use std::fmt::Debug;
move_data,
elements,
upvars,
+ use_polonius,
);
if let Some(all_facts) = &mut all_facts {
err.note(&format!("Inferred opaque type values:\n{:#?}", opaque_type_values));
}
- errors.buffer_error(err);
+ errors.buffer_non_error_diag(err);
}
fn for_each_region_constraint(
fn to_region_vid(self) -> RegionVid;
}
-impl<'tcx> ToRegionVid for &'tcx RegionKind {
+impl<'tcx> ToRegionVid for Region<'tcx> {
fn to_region_vid(self) -> RegionVid {
- if let ty::ReVar(vid) = self { *vid } else { bug!("region is not an ReVar: {:?}", self) }
+ if let ty::ReVar(vid) = *self { vid } else { bug!("region is not an ReVar: {:?}", self) }
}
}