summaryrefslogtreecommitdiff
path: root/src/hir_expand
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2017-09-08 12:01:00 +0800
committerJohn Hodge <tpg@ucc.asn.au>2017-09-08 12:01:00 +0800
commita901b985312f70e55834445038c3158af16102b9 (patch)
treeaa5883bdfccd7c0414ed8a3c54f3d8cf004500a8 /src/hir_expand
parentfb18453b184e16be703e543847b233a614fb39de (diff)
downloadmrust-a901b985312f70e55834445038c3158af16102b9.tar.gz
Typecheck - Various tweaks from librustdoc
Diffstat (limited to 'src/hir_expand')
-rw-r--r--src/hir_expand/erased_types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir_expand/erased_types.cpp b/src/hir_expand/erased_types.cpp
index caf42a79..22c037f8 100644
--- a/src/hir_expand/erased_types.cpp
+++ b/src/hir_expand/erased_types.cpp
@@ -48,7 +48,7 @@ const ::HIR::Function& HIR_Expand_ErasedType_GetFunction(const Span& sp, const S
// 2. Obtain monomorph_cb (including impl params)
impl_params.m_types.resize(impl_ptr->m_params.m_types.size());
- impl_ptr->m_type .match_test_generics(sp, *pe.type, [](const auto& x)->const auto&{return x;}, [&](auto idx, const auto& ty) {
+ impl_ptr->m_type .match_test_generics(sp, *pe.type, [](const auto& x)->const auto&{return x;}, [&](auto idx, const auto& /*name*/, const auto& ty) {
assert( idx < impl_params.m_types.size() );
impl_params.m_types[idx] = ty.clone();
return ::HIR::Compare::Equal;