aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
-rw-r--r--gcc/rust/backend/rust-compile-expr.h6
1 files changed, 4 insertions, 2 deletions
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;
}