Skip to content

Commit 5230565

Browse files
committed
Add a comment about template instantiation parentage
1 parent c736faa commit 5230565

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ir/context.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,11 @@ impl<'ctx> BindgenContext<'ctx> {
10381038
/// Incomplete<U> bar;
10391039
/// };
10401040
/// ```
1041+
///
1042+
/// Finally, template instantiations are always children of the current
1043+
/// module. They use their template's definition for their name, so the
1044+
/// parent is only useful for ensuring that their layout tests get
1045+
/// codegen'd.
10411046
fn instantiate_template(&mut self,
10421047
with_id: ItemId,
10431048
template: ItemId,

0 commit comments

Comments
 (0)