From 6db677bac0e24228431d1f20f21dc2bc5b6d00a9 Mon Sep 17 00:00:00 2001 From: Arthur Cohen Date: Mon, 31 Jul 2023 16:13:25 +0200 Subject: [PATCH] gccrs: forever-stack: Use rust_assert instead of assert This causes complaints by our GCC 4.8 builder. gcc/rust/ChangeLog: * resolve/rust-forever-stack.hxx: assert() -> rust_assert() --- gcc/rust/resolve/rust-forever-stack.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/rust/resolve/rust-forever-stack.hxx b/gcc/rust/resolve/rust-forever-stack.hxx index 2685f1d108e7..c961e2b32edf 100644 --- a/gcc/rust/resolve/rust-forever-stack.hxx +++ b/gcc/rust/resolve/rust-forever-stack.hxx @@ -83,7 +83,7 @@ template void ForeverStack::pop () { - assert (!cursor ().is_root ()); + rust_assert (!cursor ().is_root ()); rust_debug ("popping link"); -- 2.47.2