diff options
author | John Hodge (bugs) <tpg@mutabah.net> | 2017-03-04 18:12:49 +0800 |
---|---|---|
committer | John Hodge (bugs) <tpg@mutabah.net> | 2017-03-04 18:12:49 +0800 |
commit | c6fca061dd134068c831aefd88d9535a30f423ed (patch) | |
tree | 28fc4abecddf8514792a4cb748f1c6e5700274c1 /src/hir_expand/closures.cpp | |
parent | 03addc877bab648ccde022edec29f5b051ce7cb9 (diff) | |
download | mrust-c6fca061dd134068c831aefd88d9535a30f423ed.tar.gz |
Many many changes to allow compiling in visual studio (Community 2015)
Diffstat (limited to 'src/hir_expand/closures.cpp')
-rw-r--r-- | src/hir_expand/closures.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hir_expand/closures.cpp b/src/hir_expand/closures.cpp index 180ed89a..82681a47 100644 --- a/src/hir_expand/closures.cpp +++ b/src/hir_expand/closures.cpp @@ -507,7 +507,7 @@ namespace { impl_path_params.m_types.push_back( ::HIR::TypeRef(params.m_types[i].m_name, i) ); } - auto monomorph_cb = [&](const auto& ty)->const auto& { + auto monomorph_cb = [&](const auto& ty)->const ::HIR::TypeRef& { const auto& ge = ty.m_data.as_Generic(); if( ge.binding == 0xFFFF ) { return params_placeholders.at(0); @@ -527,7 +527,7 @@ namespace { } }; auto monomorph = [&](const auto& ty){ return monomorphise_type_with(sp, ty, monomorph_cb); }; - auto cb_replace = [&](const auto& tpl, auto& rv) { + auto cb_replace = [&](const auto& tpl, auto& rv)->bool { if( tpl.m_data.is_Infer() ) { BUG(sp, ""); } @@ -551,7 +551,7 @@ namespace { }; // - Clone the bounds (from both levels) - auto monomorph_bound = [&](const ::HIR::GenericBound& b)->auto { + auto monomorph_bound = [&](const ::HIR::GenericBound& b)->::HIR::GenericBound { TU_MATCHA( (b), (e), (Lifetime, return ::HIR::GenericBound(e); ), |