summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-07-10 15:31:59 +1000
committerJohn Hodge <tpg@mutabah.net>2016-07-10 15:31:59 +1000
commitb1ce27813d7b912236bcbcc29f133be371f8027b (patch)
tree94640fc7af426960acce08a935f1ed9b8d748cac /src
parent154a9d48f58a8e3575dfa730aeabfc4d4e418ed2 (diff)
downloadmrust-b1ce27813d7b912236bcbcc29f133be371f8027b.tar.gz
HIR Creation - (minor) Use a vistor-global null span
Diffstat (limited to 'src')
-rw-r--r--src/hir/from_ast.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hir/from_ast.cpp b/src/hir/from_ast.cpp
index 5003e1f9..f3a41207 100644
--- a/src/hir/from_ast.cpp
+++ b/src/hir/from_ast.cpp
@@ -1028,6 +1028,7 @@ class IndexVisitor:
public ::HIR::Visitor
{
const ::HIR::Crate& crate;
+ Span null_span;
public:
IndexVisitor(const ::HIR::Crate& crate):
crate(crate)
@@ -1038,7 +1039,7 @@ public:
for( auto& bound : params.m_bounds )
{
TU_IFLET(::HIR::GenericBound, bound, TraitBound, e,
- e.trait.m_trait_ptr = &this->crate.get_trait_by_path(Span(), e.trait.m_path.m_path);
+ e.trait.m_trait_ptr = &this->crate.get_trait_by_path(null_span, e.trait.m_path.m_path);
)
}
}