Add debug_assert comment
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
This commit is contained in:
parent
15f2b119b1
commit
b3bc438f56
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue