diff options
Diffstat (limited to 'src/ir/ty.rs')
-rw-r--r-- | src/ir/ty.rs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/ir/ty.rs b/src/ir/ty.rs index bfb4c48e..9a51c2b3 100644 --- a/src/ir/ty.rs +++ b/src/ir/ty.rs @@ -925,18 +925,21 @@ impl Type { CXCursor_TypeAliasDecl => { let current = cur.cur_type(); - debug_assert!(current.kind() == - CXType_Typedef); + debug_assert_eq!( + current.kind(), + CXType_Typedef + ); name = current.spelling(); let inner_ty = cur.typedef_type() .expect("Not valid Type?"); - inner = - Item::from_ty(&inner_ty, - cur, - Some(potential_id), - ctx); + inner = Ok(Item::from_ty_or_ref( + inner_ty, + cur, + Some(potential_id), + ctx, + )); } CXCursor_TemplateTypeParameter => { let param = |