Changed location to at_self from at_successor.
This commit is contained in:
parent
5f21aa8734
commit
239b3ec473
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue