diff options
Diffstat (limited to 'src/ast/path.cpp')
-rw-r--r-- | src/ast/path.cpp | 2 |
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); ), |