aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2021-10-25 09:40:23 -0400
committerBen Boeckel <mathstuf@gmail.com>2021-10-25 09:40:23 -0400
commit5d65ef58a991c811f16d35423ca3f2271fd20b7b (patch)
tree1a9022e53e7e62e4420367e7942dba17e7a20ab4 /gcc
parent868d3125d326a6800376411fb6699d984cfa7101 (diff)
downloadgcc-5d65ef58a991c811f16d35423ca3f2271fd20b7b.zip
gcc-5d65ef58a991c811f16d35423ca3f2271fd20b7b.tar.gz
gcc-5d65ef58a991c811f16d35423ca3f2271fd20b7b.tar.bz2
CompileExpr: fix copy pasta error message
Also downgrade from a fatal error to a compilation error. Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/backend/rust-compile-expr.h4
1 files changed, 2 insertions, 2 deletions
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;
}