summaryrefslogtreecommitdiff
path: root/src/ast/path.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-29 23:02:21 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-29 23:02:21 +0800
commitad4b6b707dedcdc779435b16081ed0445f71ff05 (patch)
tree429096a6f984897d1488c62d93144a013c75a04d /src/ast/path.cpp
parente60aa50103d9b24819f3dc26c783c2237f873664 (diff)
downloadmrust-ad4b6b707dedcdc779435b16081ed0445f71ff05.tar.gz
Handling for 'T::method()' (where T is a type param)
Diffstat (limited to 'src/ast/path.cpp')
-rw-r--r--src/ast/path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast/path.cpp b/src/ast/path.cpp
index 686647a5..c06a63a4 100644
--- a/src/ast/path.cpp
+++ b/src/ast/path.cpp
@@ -386,7 +386,7 @@ void Path::print_pretty(::std::ostream& os) const
::std::ostream& operator<<(::std::ostream& os, const Path& path)
{
- if( path.m_nodes.size() == 0 )
+ if( path.m_nodes.size() == 0 && path.m_class == Path::RELATIVE )
{
os << "/* null path */";
return os;