summaryrefslogtreecommitdiff
path: root/src/ast
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-01-31 14:53:08 +0800
committerJohn Hodge <tpg@mutabah.net>2016-01-31 14:53:08 +0800
commit13075f30738556212ca0ff02d28dab75c268c1fd (patch)
treeb051b1fa283b25477bf4cf8e5196f95295d9f4a5 /src/ast
parent0b8f4dfa88d392ab188c3ee85e1afe1e3658cca5 (diff)
downloadmrust-13075f30738556212ca0ff02d28dab75c268c1fd.tar.gz
Name resolution in anon modules
Diffstat (limited to 'src/ast')
-rw-r--r--src/ast/path.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp
index c2250999..1703da53 100644
--- a/src/ast/path.cpp
+++ b/src/ast/path.cpp
@@ -26,8 +26,8 @@ namespace AST {
(StructMethod, os << "StructMethod"; ),
(TraitMethod, os << "TraitMethod"; ),
- (TypeParameter, os << "TypeParameter(" << i.level << " # " << i.idx << ")"; ),
- (Variable, os << "Variable(" << i.slot << ")"; )
+ (TypeParameter, os << "TyParam(" << i.level << " # " << i.idx << ")"; ),
+ (Variable, os << "Var(" << i.slot << ")"; )
)
return os;
}
@@ -60,7 +60,7 @@ void PathNode::print_pretty(::std::ostream& os, bool is_type_context) const
os << m_name;
if( m_params.size() )
{
- if( is_type_context )
+ if( ! is_type_context )
os << "::";
os << "<";
os << m_params;