From 09d26b3e0b11859bc9fa27f9a4b176da47bc7add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Poulhi=C3=A8s?= Date: Sun, 6 Jun 2021 15:08:03 +0200 Subject: Make 3 error messages slightly more informational Add more context to some internal error messages (ie. not intended for user) --- gcc/rust/backend/rust-compile-expr.h | 6 ++++-- 1 file changed, 4 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 59ae815..09652f1 100644 --- a/gcc/rust/backend/rust-compile-expr.h +++ b/gcc/rust/backend/rust-compile-expr.h @@ -183,8 +183,10 @@ 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 literal expr"); + rust_fatal_error ( + expr.get_locus (), + "did not resolve type for this literal expr (HirId %d)", + expr.get_mappings ().get_hirid ()); return; } -- cgit v1.1