public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-7955] gccrs: fix bug in the iterator testcase
@ 2024-01-16 18:08 Arthur Cohen
0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-01-16 18:08 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:979b38d4bef30787cdfda445045755832e02503c
commit r14-7955-g979b38d4bef30787cdfda445045755832e02503c
Author: Philip Herron <herron.philip@googlemail.com>
Date: Thu Aug 31 11:50:31 2023 +0100
gccrs: fix bug in the iterator testcase
gcc/testsuite/ChangeLog:
* rust/compile/iterators1.rs: this should be casting to the $ty
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diff:
---
gcc/testsuite/rust/compile/iterators1.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/rust/compile/iterators1.rs b/gcc/testsuite/rust/compile/iterators1.rs
index 33736f169d3..35fea5a0493 100644
--- a/gcc/testsuite/rust/compile/iterators1.rs
+++ b/gcc/testsuite/rust/compile/iterators1.rs
@@ -264,7 +264,7 @@ macro_rules! impl_uint {
}
pub fn overflowing_add(self, rhs: Self) -> (Self, bool) {
- let (a, b) = unsafe { intrinsics::add_with_overflow(self as i32, rhs as i32) };
+ let (a, b) = unsafe { intrinsics::add_with_overflow(self as $ty, rhs as $ty) };
(a as Self, b)
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-16 18:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 18:08 [gcc r14-7955] gccrs: fix bug in the iterator testcase Arthur Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).