From bded1205ddf56332f5864f4a93d69b74a41fb38f Mon Sep 17 00:00:00 2001 From: "John Hodge (bugs)" Date: Thu, 6 Jul 2017 20:05:02 +0800 Subject: Misc - Minor MSVC fixes --- src/hir_typeck/static.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hir_typeck') diff --git a/src/hir_typeck/static.cpp b/src/hir_typeck/static.cpp index 0067eb7f..1d613d96 100644 --- a/src/hir_typeck/static.cpp +++ b/src/hir_typeck/static.cpp @@ -1574,7 +1574,7 @@ bool StaticTraitResolve::can_unsize(const Span& sp, const ::HIR::TypeRef& dst_ty // 1. Data trait must be the same if( de->m_trait != se->m_trait ) { - return ::HIR::Compare::Unequal; + return false; } // 2. Destination markers must be a strict subset @@ -1658,7 +1658,7 @@ bool StaticTraitResolve::can_unsize(const Span& sp, const ::HIR::TypeRef& dst_ty } DEBUG("Can't unsize, no rules matched"); - return ::HIR::Compare::Unequal; + return false; } -- cgit v1.2.3