Skip to content

Commit 5d2a60c

Browse files
committed
No longer visiting user_assert_ty statements in constraint generation.
1 parent d4b9a78 commit 5d2a60c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/librustc_mir/borrow_check/nll/constraint_generation.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ use rustc::hir;
1212
use rustc::mir::{BasicBlock, BasicBlockData, Location, Place, Mir, Rvalue};
1313
use rustc::mir::visit::Visitor;
1414
use rustc::mir::Place::Projection;
15-
use rustc::mir::{PlaceProjection, ProjectionElem};
15+
use rustc::mir::{Local, PlaceProjection, ProjectionElem};
1616
use rustc::mir::visit::TyContext;
1717
use rustc::infer::InferCtxt;
18-
use rustc::ty::{self, ClosureSubsts};
18+
use rustc::ty::{self, ClosureSubsts, Ty};
1919
use rustc::ty::subst::Substs;
2020
use rustc::ty::fold::TypeFoldable;
2121

@@ -106,6 +106,8 @@ impl<'cg, 'cx, 'gcx, 'tcx> Visitor<'tcx> for ConstraintGeneration<'cg, 'cx, 'gcx
106106

107107
self.super_rvalue(rvalue, location);
108108
}
109+
110+
fn visit_user_assert_ty(&mut self, _ty: &Ty<'tcx>, _local: &Local, _location: Location) { }
109111
}
110112

111113
impl<'cx, 'cg, 'gcx, 'tcx> ConstraintGeneration<'cx, 'cg, 'gcx, 'tcx> {

0 commit comments

Comments
 (0)