1
Fork 0

Added comment in renumberer about UserAssertTy.

This commit is contained in:
David Wood 2018-03-13 14:16:53 +00:00
parent c8d81b1a2e
commit d4b9a7874b
No known key found for this signature in database
GPG key ID: 01760B4F9F53F154

View file

@ -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");
}