Skip to content

Commit

Permalink
break rust: Fix usage of diagnostic API.
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* resolve/rust-ast-resolve-expr.cc (funny_ice_finalizer): Mark
	second parameter as const to conform to new API.
  • Loading branch information
CohenArthur committed Jan 17, 2024
1 parent 97f7e51 commit 5ff3907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcc/rust/resolve/rust-ast-resolve-expr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ ResolveExpr::visit (AST::AssignmentExpr &expr)
the default bug reporting instructions, as there is no bug to report. */

static void ATTRIBUTE_NORETURN
funny_ice_finalizer (diagnostic_context *context, diagnostic_info *diagnostic,
diagnostic_t diag_kind)
funny_ice_finalizer (diagnostic_context *context,
const diagnostic_info *diagnostic, diagnostic_t diag_kind)
{
gcc_assert (diag_kind == DK_ICE_NOBT);
default_diagnostic_finalizer (context, diagnostic, diag_kind);
Expand Down

0 comments on commit 5ff3907

Please sign in to comment.