Changed location to at_self from at_successor.

This commit is contained in:
David Wood 2018-03-02 14:33:21 +00:00
parent 5f21aa8734
commit 239b3ec473
No known key found for this signature in database
GPG key ID: 01760B4F9F53F154

View file

@ -765,7 +765,7 @@ impl<'a, 'gcx, 'tcx> TypeChecker<'a, 'gcx, 'tcx> {
let local_ty = mir.local_decls()[*local].ty;
debug!("check_stmt: user_assert_ty ty={:?} local_ty={:?}", ty, local_ty);
if let Err(terr) =
self.eq_types(ty, local_ty, location.at_successor_within_block())
self.eq_types(ty, local_ty, location.at_self())
{
span_mirbug!(
self,