diff options
author | Nick Fitzgerald <fitzgen@gmail.com> | 2017-06-20 16:36:10 -0700 |
---|---|---|
committer | Nick Fitzgerald <fitzgen@gmail.com> | 2017-06-20 16:36:10 -0700 |
commit | 52305657b6eea5d9a0dea17f72f8865281ebbccc (patch) | |
tree | dd5752b693b64d486138be9d38a63672e58f6594 | |
parent | c736faaa3728d6e7475f85cbf0fe1d3ff05586a1 (diff) |
Add a comment about template instantiation parentage
-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, |