diff options
author | John Hodge <tpg@mutabah.net> | 2016-07-17 14:12:24 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-07-17 14:12:24 +0800 |
commit | cba4603c178b886fa2579c6fc814e3e31b76b8dd (patch) | |
tree | 247e6613fab06800bf33817e9e359e72f195caf4 /src/hir_conv/bind.cpp | |
parent | c9c325b294db270a093f652fa7aced682a5c183c (diff) | |
download | mrust-cba4603c178b886fa2579c6fc814e3e31b76b8dd.tar.gz |
HIR,HIR Typecheck - Simplify associated type bounds, add type replacements
Diffstat (limited to 'src/hir_conv/bind.cpp')
-rw-r--r-- | src/hir_conv/bind.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hir_conv/bind.cpp b/src/hir_conv/bind.cpp index 7addeb5b..bb2273aa 100644 --- a/src/hir_conv/bind.cpp +++ b/src/hir_conv/bind.cpp @@ -123,6 +123,14 @@ namespace { m_crate(crate) {} + void visit_trait_path(::HIR::TraitPath& p) override + { + static Span sp; + p.m_trait_ptr = &m_crate.get_trait_by_path(sp, p.m_path.m_path); + + ::HIR::Visitor::visit_trait_path(p); + } + void visit_pattern(::HIR::Pattern& pat) override { static Span _sp = Span(); |