summaryrefslogtreecommitdiff
path: root/src/hir_conv/resolve_ufcs_outer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hir_conv/resolve_ufcs_outer.cpp')
-rw-r--r--src/hir_conv/resolve_ufcs_outer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir_conv/resolve_ufcs_outer.cpp b/src/hir_conv/resolve_ufcs_outer.cpp
index 1f245a0d..4e90f4f2 100644
--- a/src/hir_conv/resolve_ufcs_outer.cpp
+++ b/src/hir_conv/resolve_ufcs_outer.cpp
@@ -343,8 +343,8 @@ namespace {
template<typename T>
void sort_impl_group(::HIR::Crate::ImplGroup<T>& ig)
{
- auto new_end = ::std::remove_if(ig.generic.begin(), ig.generic.end(), [&ig](T& ty_impl) {
- const auto& type = ty_impl.m_type; // Using field accesses in templates feels so dirty
+ auto new_end = ::std::remove_if(ig.generic.begin(), ig.generic.end(), [&ig](::std::unique_ptr<T>& ty_impl) {
+ const auto& type = ty_impl->m_type; // Using field accesses in templates feels so dirty
const ::HIR::SimplePath* path = type.get_sort_path();
if( path )