Skip to content

Commit 239b3ec

Browse files
committed
Changed location to at_self from at_successor.
1 parent 5f21aa8 commit 239b3ec

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_mir/borrow_check/nll/type_check

1 file changed

+1
-1
lines changed

src/librustc_mir/borrow_check/nll/type_check/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
765765
let local_ty = mir.local_decls()[*local].ty;
766766
debug!("check_stmt: user_assert_ty ty={:?} local_ty={:?}", ty, local_ty);
767767
if let Err(terr) =
768-
self.eq_types(ty, local_ty, location.at_successor_within_block())
768+
self.eq_types(ty, local_ty, location.at_self())
769769
{
770770
span_mirbug!(
771771
self,

0 commit comments

Comments
 (0)