diff options
-rw-r--r-- | src/ir/context.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs index c11d7713..ec79577f 100644 --- a/src/ir/context.rs +++ b/src/ir/context.rs @@ -763,6 +763,10 @@ impl<'ctx> BindgenContext<'ctx> { self.process_replacements(); } + // And assert once again, because resolving type refs and processing + // replacements both mutate the IR graph. + self.assert_no_dangling_references(); + // Compute the whitelisted set after processing replacements and // resolving type refs, as those are the final mutations of the IR // graph, and their completion means that the IR graph is now frozen. |