summaryrefslogtreecommitdiff
path: root/src/codegen/impl_debug.rs
diff options
context:
space:
mode:
authorNick Fitzgerald <fitzgen@gmail.com>2017-09-29 16:09:52 -0700
committerNick Fitzgerald <fitzgen@gmail.com>2017-10-02 11:33:26 -0700
commitbd324232ef905a2186cf88510a68c27d55859a30 (patch)
tree2472ae8ab1c5c1be13c692571cf6f5a2e74c8692 /src/codegen/impl_debug.rs
parentbd232fb54061d81b1219805d4905d8835a0d84f0 (diff)
Make `TypeKind::{Alias,TemplateAlias,Array,Pointer,Reference}` use `TypeId`
This commit makes certain `TypeKind`s that can only reference other types use `TypeId` instead of `ItemId`.
Diffstat (limited to 'src/codegen/impl_debug.rs')
-rw-r--r--src/codegen/impl_debug.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/impl_debug.rs b/src/codegen/impl_debug.rs
index e111ecc6..7ef108da 100644
--- a/src/codegen/impl_debug.rs
+++ b/src/codegen/impl_debug.rs
@@ -203,7 +203,7 @@ impl<'a> ImplDebug<'a> for Item {
}
TypeKind::Pointer(inner) => {
- let inner_type = ctx.resolve_type(inner.as_type_id_unchecked()).canonical_type(ctx);
+ let inner_type = ctx.resolve_type(inner).canonical_type(ctx);
match *inner_type.kind() {
TypeKind::Function(ref sig)
if !sig.can_trivially_derive_debug() => {