aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.cc')
-rw-r--r--gcc/rust/backend/rust-compile-expr.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc
index b6f92bb..80cc608 100644
--- a/gcc/rust/backend/rust-compile-expr.cc
+++ b/gcc/rust/backend/rust-compile-expr.cc
@@ -1117,7 +1117,7 @@ sort_tuple_patterns (HIR::MatchExpr &expr)
else /* TuplePatternItemType::RANGED */
{
// FIXME
- gcc_unreachable ();
+ rust_unreachable ();
}
}
@@ -1430,25 +1430,25 @@ CompileExpr::visit (HIR::MatchExpr &expr)
else
{
// FIXME: There are other cases, but it better not be a Tuple
- gcc_unreachable ();
+ rust_unreachable ();
}
}
break;
case HIR::Expr::ExprType::Path: {
// FIXME
- gcc_unreachable ();
+ rust_unreachable ();
}
break;
default:
- gcc_unreachable ();
+ rust_unreachable ();
}
}
else
{
// FIXME: match on other types of expressions not yet implemented.
- gcc_unreachable ();
+ rust_unreachable ();
}
// setup the end label so the cases can exit properly
@@ -2856,7 +2856,7 @@ CompileExpr::generate_closure_fntype (HIR::ClosureExpr &expr,
else
{
// FIXME error message?
- gcc_unreachable ();
+ rust_unreachable ();
return error_mark_node;
}