Add debug_assert comment
Co-authored-by: Camille Gillot <gillot.camille@gmail.com>
This commit is contained in:
parent
15f2b119b1
commit
b3bc438f56
@ -479,6 +479,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
|||||||
|
|
||||||
let item = f(self);
|
let item = f(self);
|
||||||
debug_assert_eq!(def_id, item.def_id());
|
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_defs.is_empty());
|
||||||
debug_assert!(self.impl_trait_bounds.is_empty());
|
debug_assert!(self.impl_trait_bounds.is_empty());
|
||||||
let info = self.make_owner_info(item);
|
let info = self.make_owner_info(item);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user