summaryrefslogtreecommitdiff
path: root/src/ast/path.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-07 09:47:54 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-07 09:47:54 +0800
commita9692e359884672b30e1742bada368330115cc14 (patch)
treebe6514917b6370392d290e397a32eb6ddf2c6097 /src/ast/path.cpp
parent6d7c84bd9d8d5e2bec8bc86d22d53975bde6e833 (diff)
downloadmrust-a9692e359884672b30e1742bada368330115cc14.tar.gz
Prettier printing
Diffstat (limited to 'src/ast/path.cpp')
-rw-r--r--src/ast/path.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp
index f3fc5e82..103ca1b2 100644
--- a/src/ast/path.cpp
+++ b/src/ast/path.cpp
@@ -356,7 +356,8 @@ void Path::print_pretty(::std::ostream& os) const
}
break;
case Path::ABSOLUTE:
- os << "{"<<path.m_crate<<"}";
+ if( path.m_crate != "" )
+ os << "::\""<<path.m_crate<<"\"";
for(const auto& n : path.m_nodes)
{
#if PRETTY_PATH_PRINT