summaryrefslogtreecommitdiff
path: root/src/ast/path.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-08-27 21:32:09 +0800
committerJohn Hodge <tpg@mutabah.net>2016-08-27 21:32:09 +0800
commit28697d7ef5f7cac8664cc248e6e219177c822eb8 (patch)
treeb2adc5a41382e6114daa86c736c1f6928d2f0c3b /src/ast/path.cpp
parent924efe07fca8620a8ed9726e473e31b86cff9b2e (diff)
downloadmrust-28697d7ef5f7cac8664cc248e6e219177c822eb8.tar.gz
Resolve - Working on extern crate support
Diffstat (limited to 'src/ast/path.cpp')
-rw-r--r--src/ast/path.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp
index 92fdc4fe..58eadf24 100644
--- a/src/ast/path.cpp
+++ b/src/ast/path.cpp
@@ -15,6 +15,7 @@ namespace AST {
::std::ostream& operator<<(::std::ostream& os, const PathBinding& x) {
TU_MATCH(PathBinding, (x), (i),
(Unbound, os << "UNBOUND"; ),
+ (Crate , os << "Crate"; ),
(Module, os << "Module"; ),
(Trait, os << "Trait"; ),
(Struct, os << "Struct"; ),
@@ -36,6 +37,7 @@ PathBinding PathBinding::clone() const
TU_MATCH(::AST::PathBinding, (*this), (e),
(Unbound , return PathBinding::make_Unbound({}); ),
(Module , return PathBinding::make_Module(e); ),
+ (Crate , return PathBinding(e); ),
(Trait , return PathBinding::make_Trait(e); ),
(Struct , return PathBinding::make_Struct(e); ),
(Enum , return PathBinding::make_Enum(e); ),