[gcc r14-7875] gccrs: forever-stack: Use rust_assert instead of assert

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 18:03:33 GMT 2024


https://gcc.gnu.org/g:6db677bac0e24228431d1f20f21dc2bc5b6d00a9

commit r14-7875-g6db677bac0e24228431d1f20f21dc2bc5b6d00a9
Author: Arthur Cohen <arthur.cohen@embecosm.com>
Date:   Mon Jul 31 16:13:25 2023 +0200

    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()

Diff:
---
 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 2685f1d108e..c961e2b32ed 100644
--- a/gcc/rust/resolve/rust-forever-stack.hxx
+++ b/gcc/rust/resolve/rust-forever-stack.hxx
@@ -83,7 +83,7 @@ template <Namespace N>
 void
 ForeverStack<N>::pop ()
 {
-  assert (!cursor ().is_root ());
+  rust_assert (!cursor ().is_root ());
 
   rust_debug ("popping link");


More information about the Gcc-cvs mailing list