summaryrefslogtreecommitdiff
path: root/src/convert/resolve.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-11-03 12:25:42 +1100
committerJohn Hodge <tpg@mutabah.net>2015-11-03 12:25:42 +1100
commit20ee7442f280ced9e5258876f9fd2212797f868b (patch)
tree2bb4fd40727ad0402d6d17a6501d5bab05fb5e48 /src/convert/resolve.cpp
parent01ec57f596f89d4b52b378975f941e2ed8d2e563 (diff)
downloadmrust-20ee7442f280ced9e5258876f9fd2212797f868b.tar.gz
Remove embedded spans (will move to wrapping spans)
Diffstat (limited to 'src/convert/resolve.cpp')
-rw-r--r--src/convert/resolve.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/convert/resolve.cpp b/src/convert/resolve.cpp
index 70bfc080..3119ae37 100644
--- a/src/convert/resolve.cpp
+++ b/src/convert/resolve.cpp
@@ -607,7 +607,7 @@ void CPathResolver::handle_path_int(AST::Path& path, CASTIterator::PathMode mode
{
if(path.size() > 1) {
auto ty = TypeRef(TypeRef::TagArg(), path[0].name());
- ty.set_span( path.span() );
+ //ty.set_span( path.span() );
// Repalce with UFCS
auto newpath = AST::Path(AST::Path::TagUfcs(), ty, TypeRef());
newpath.add_tailing(path);
@@ -1369,8 +1369,7 @@ void ResolvePaths_HandleModule_Use(const AST::Crate& crate, const AST::Path& mod
mod = &crate.get_root_module(i);
),
(TypeAlias,
- throw ParseError::Todo("Bind to type alias in use resolution");
- //p.bind_type_alias(i);
+ p.bind_type_alias(i);
mod = nullptr;
),
(Function,