Skip to content

Commit

Permalink
Added comment in renumberer about UserAssertTy.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtwco committed Mar 22, 2018
1 parent c8d81b1 commit d4b9a78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_mir/borrow_check/nll/renumber.rs
Expand Up @@ -120,6 +120,9 @@ impl<'a, 'gcx, 'tcx> MutVisitor<'tcx> for NLLVisitor<'a, 'gcx, 'tcx> {

fn visit_user_assert_ty(&mut self, _ty: &mut Ty<'tcx>, _local: &mut Local,
_location: Location) {
// User-assert-ty statements represent types that the user added explicitly.
// We don't want to erase the regions from these types: rather, we want to
// add them as constraints at type-check time.
debug!("visit_user_assert_ty: skipping renumber");
}

Expand Down

0 comments on commit d4b9a78

Please sign in to comment.