summaryrefslogtreecommitdiff
path: root/src/resolve
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-29 11:52:53 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-29 11:52:53 +0800
commit0c3cd458773f2fa416dbb3448b0976e1ab178476 (patch)
tree9ad9808f36a8097a2996a9d11c2163ee0606e744 /src/resolve
parent6be8db3efc9a9156e262a03c8d6b13d32e3b1c39 (diff)
downloadmrust-0c3cd458773f2fa416dbb3448b0976e1ab178476.tar.gz
Parse - Convert `<Foo>::BAR` into `<Foo as _>::BAR`
Diffstat (limited to 'src/resolve')
-rw-r--r--src/resolve/absolute.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/absolute.cpp b/src/resolve/absolute.cpp
index d8b167c4..7f69f02d 100644
--- a/src/resolve/absolute.cpp
+++ b/src/resolve/absolute.cpp
@@ -1388,7 +1388,7 @@ void Resolve_Absolute_Path(/*const*/ Context& context, const Span& sp, Context::
(UFCS,
DEBUG("- UFCS");
Resolve_Absolute_Type(context, *e.type);
- if( e.trait ) {
+ if( e.trait && *e.trait != ::AST::Path() ) {
Resolve_Absolute_Path(context, sp, Context::LookupMode::Type, *e.trait);
}