diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-11-16 17:01:05 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-11-16 17:01:05 +0800 |
commit | d1df150bbfc8763e95148c5eff7e59a14bb55028 (patch) | |
tree | fca82a93cbb2b1e06c16c5f7775274b8f59ae988 | |
parent | 723568ba266d8b88650cc819ad6f508d5897509f (diff) | |
download | mrust-d1df150bbfc8763e95148c5eff7e59a14bb55028.tar.gz |
HIR Typecheck Outer - Don't check type aliases
-rw-r--r-- | src/hir_typeck/outer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hir_typeck/outer.cpp b/src/hir_typeck/outer.cpp index ef1d38cd..9a637202 100644 --- a/src/hir_typeck/outer.cpp +++ b/src/hir_typeck/outer.cpp @@ -670,6 +670,11 @@ namespace { m_self_types.pop_back(); } + void visit_type_alias(::HIR::ItemPath p, ::HIR::TypeAlias& item) override + { + // Ignore type aliases, they don't have to typecheck. + } + void visit_type_impl(::HIR::TypeImpl& impl) override { TRACE_FUNCTION_F("impl " << impl.m_type); |