Add debug_assert comment

Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
This commit is contained in:
Santiago Pastorino 2022-06-01 14:43:16 -03:00 committed by GitHub
parent 15f2b119b1
commit b3bc438f56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -479,6 +479,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
let item = f(self);
debug_assert_eq!(def_id, item.def_id());
// `f` should have consumed all the elements in these vectors when constructing `item`.
debug_assert!(self.impl_trait_defs.is_empty());
debug_assert!(self.impl_trait_bounds.is_empty());
let info = self.make_owner_info(item);