]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: forever-stack: Use rust_assert instead of assert
authorArthur Cohen <arthur.cohen@embecosm.com>
Mon, 31 Jul 2023 14:13:25 +0000 (16:13 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:00:26 +0000 (19:00 +0100)
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

index 2685f1d108e7075c02b562352c8c30d3dc191eea..c961e2b32edf9fc3c1a755c5b4307383719cfcf6 100644 (file)
@@ -83,7 +83,7 @@ template <Namespace N>
 void
 ForeverStack<N>::pop ()
 {
-  assert (!cursor ().is_root ());
+  rust_assert (!cursor ().is_root ());
 
   rust_debug ("popping link");