From: lenny.chiadmi-delage Date: Fri, 16 Jan 2026 14:50:52 +0000 (+0000) Subject: gccrs: replace unreachable with sorry_at X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6abe92f8e16f2fe8adfe391fa33d3dc474adbfc5;p=thirdparty%2Fgcc.git gccrs: replace unreachable with sorry_at Do not throw an ICE whit unimplemented `box`. gcc/rust/ChangeLog: * hir/rust-ast-lower-expr.cc (ASTLoweringExpr::visit): Replace unreachable with sorry_at. Signed-off-by: lenny.chiadmi-delage --- diff --git a/gcc/rust/hir/rust-ast-lower-expr.cc b/gcc/rust/hir/rust-ast-lower-expr.cc index d76811855f6..47f98f3ad65 100644 --- a/gcc/rust/hir/rust-ast-lower-expr.cc +++ b/gcc/rust/hir/rust-ast-lower-expr.cc @@ -192,8 +192,8 @@ ASTLoweringExpr::visit (AST::QualifiedPathInExpression &expr) void ASTLoweringExpr::visit (AST::BoxExpr &expr) { - // Not implemented - rust_unreachable (); + rust_sorry_at (expr.get_locus (), + "box expression syntax is not supported yet"); } void