Skip to content

Commit d4b9a78

Browse files
committed
Added comment in renumberer about UserAssertTy.
1 parent c8d81b1 commit d4b9a78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_mir/borrow_check/nll/renumber.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ impl<'a, 'gcx, 'tcx> MutVisitor<'tcx> for NLLVisitor<'a, 'gcx, 'tcx> {
120120

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

0 commit comments

Comments
 (0)