summaryrefslogtreecommitdiff
path: root/src/codegen/mod.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-05-19 22:50:51 -0500
committerGitHub <noreply@github.com>2017-05-19 22:50:51 -0500
commitea9a9322053b4bfef91206e33a67cf96e2831930 (patch)
tree63e3fa2d52fedcdeb7bc4c99859af2b9866c52fa /src/codegen/mod.rs
parent25150ca64f8009ac53829a2daa031c8723684523 (diff)
parent44f68587e4635df5661e64f03dd2dd4d9a3ebd30 (diff)
Auto merge of #708 - emilio:template-inst-noise, r=fitzgen
codegen: Reuse the next_child_local_id hack for template instantiations. This should be good enough, following the pattern of anonymous items, and should prevent most of the current noise in stylo updates. Closes #620 Fixes #619
Diffstat (limited to 'src/codegen/mod.rs')
-rw-r--r--src/codegen/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs
index 06e3a4f6..2f8ad805 100644
--- a/src/codegen/mod.rs
+++ b/src/codegen/mod.rs
@@ -760,8 +760,8 @@ impl CodeGenerator for TemplateInstantiation {
let name = item.canonical_name(ctx);
let fn_name = format!("__bindgen_test_layout_{}_instantiation_{}",
- name,
- item.id().as_usize());
+ name, item.exposed_id(ctx));
+
let fn_name = ctx.rust_ident_raw(&fn_name);
let prefix = ctx.trait_prefix();