#![allow(unreachable_code)]
use borrow_check::location::LocationTable;
+ use borrow_check::nll::constraint_set::ConstraintSet;
use borrow_check::nll::facts::AllFacts;
use borrow_check::nll::region_infer::Cause;
- use borrow_check::nll::region_infer::{ClosureRegionRequirementsExt, OutlivesConstraint, TypeTest};
+ use borrow_check::nll::region_infer::{ClosureRegionRequirementsExt, TypeTest};
use borrow_check::nll::universal_regions::UniversalRegions;
use dataflow::move_paths::MoveData;
use dataflow::FlowAtLocation;
impl<'a, 'b, 'gcx, 'tcx> Visitor<'tcx> for TypeVerifier<'a, 'b, 'gcx, 'tcx> {
fn visit_span(&mut self, span: &Span) {
- if *span != DUMMY_SP {
+ if !span.is_dummy() {
self.last_span = *span;
}
}
/// hence it must report on their liveness constraints.
crate liveness_set: Vec<(ty::Region<'tcx>, Location, Cause)>,
- crate outlives_constraints: Vec<OutlivesConstraint>,
+ crate outlives_constraints: ConstraintSet,
crate type_tests: Vec<TypeTest<'tcx>>,
}
statement_index: 0,
};
for stmt in &block_data.statements {
- if stmt.source_info.span != DUMMY_SP {
+ if !stmt.source_info.span.is_dummy() {
self.last_span = stmt.source_info.span;
}
self.check_stmt(mir, stmt, location);