From 5d65ef58a991c811f16d35423ca3f2271fd20b7b Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 25 Oct 2021 09:40:23 -0400 Subject: CompileExpr: fix copy pasta error message Also downgrade from a fatal error to a compilation error. Signed-off-by: Ben Boeckel --- gcc/rust/backend/rust-compile-expr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/rust/backend') diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h index 58b6e39..0512373 100644 --- a/gcc/rust/backend/rust-compile-expr.h +++ b/gcc/rust/backend/rust-compile-expr.h @@ -317,8 +317,8 @@ public: if (!ctx->get_tyctx ()->lookup_type ( expr.get_mappings ().get_hirid (), &tyty)) { - rust_fatal_error (expr.get_locus (), - "did not resolve type for this array expr"); + rust_error_at (expr.get_locus (), + "did not resolve type for this byte string"); return; } -- cgit v1.1