diff options
-rw-r--r-- | src/ir/context.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs index a53eba14..eb0fd98a 100644 --- a/src/ir/context.rs +++ b/src/ir/context.rs @@ -1038,6 +1038,11 @@ impl<'ctx> BindgenContext<'ctx> { /// Incomplete<U> bar; /// }; /// ``` + /// + /// Finally, template instantiations are always children of the current + /// module. They use their template's definition for their name, so the + /// parent is only useful for ensuring that their layout tests get + /// codegen'd. fn instantiate_template(&mut self, with_id: ItemId, template: ItemId, |