]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_ast_lowering/src/index.rs
Rollup merge of #100293 - yanchen4791:add-inline-llvm-option, r=nnethercote
[rust.git] / compiler / rustc_ast_lowering / src / index.rs
index 61470d93bdb2c3bb3411c5b4a78c54a346bcb4ea..e732aed5a293a53f1ba99ea8cda5349270201f99 100644 (file)
@@ -69,6 +69,7 @@ impl<'a, 'hir> NodeCollector<'a, 'hir> {
     fn insert(&mut self, span: Span, hir_id: HirId, node: Node<'hir>) {
         debug_assert_eq!(self.owner, hir_id.owner);
         debug_assert_ne!(hir_id.local_id.as_u32(), 0);
+        debug_assert_ne!(hir_id.local_id, self.parent_node);
 
         // Make sure that the DepNode of some node coincides with the HirId
         // owner of that node.