From 07320d3ee7d9964e6aae815b98dec33ae4f7196e Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 21 Jan 2024 21:43:30 +0800 Subject: [PATCH] Typecheck Static - Fix a GCC compile error --- src/hir_typeck/static.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hir_typeck/static.cpp b/src/hir_typeck/static.cpp index 9809f725..62b390e0 100644 --- a/src/hir_typeck/static.cpp +++ b/src/hir_typeck/static.cpp @@ -2877,6 +2877,7 @@ HIR::TypeRef StaticTraitResolve::get_field_type(const Span& sp, const ::HIR::Typ } } } + BUG(sp, "Reached end of `get_field_type` - " << ty); } StaticTraitResolve::ValuePtr StaticTraitResolve::get_value(const Span& sp, const ::HIR::Path& p, MonomorphState& out_params, bool signature_only/*=false*/, const HIR::GenericParams** out_impl_params_def/*=nullptr*/) const