summaryrefslogtreecommitdiff
path: root/src/hir/from_ast.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-05-20 11:55:31 +0800
committerJohn Hodge <tpg@mutabah.net>2016-05-20 11:55:31 +0800
commita0c013a290f88e4ade34c08ff618d8f1ed3f63f6 (patch)
treeae0d233b2189ab58d00beeeadebeda07ac792bea /src/hir/from_ast.cpp
parent19b8d4012bf6d81c47f7eab66a7e38d05d7af718 (diff)
downloadmrust-a0c013a290f88e4ade34c08ff618d8f1ed3f63f6.tar.gz
AST/Path - Move crate name to Absolute form
Diffstat (limited to 'src/hir/from_ast.cpp')
-rw-r--r--src/hir/from_ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 8a611d33..d8e21496 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -335,7 +335,7 @@
::HIR::SimplePath LowerHIR_SimplePath(const ::AST::Path& path, bool allow_final_generic = false)
{
TU_IFLET(::AST::Path::Class, path.m_class, Absolute, e,
- ::HIR::SimplePath rv( path.crate() );
+ ::HIR::SimplePath rv( e.crate );
for( const auto& node : e.nodes )
{
if( node.args().size() > 0 )