We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e2e0ad commit ecd6943Copy full SHA for ecd6943
1 file changed
tests/unit/out/refcount/offsetof.rs
@@ -102,14 +102,7 @@ fn main_0() -> i32 {
102
assert!(((*(*v.borrow()).b.borrow()) == 305419896_u32));
103
let text: Value<Ptr<u8>> = Rc::new(RefCell::new(Ptr::from_string_literal(b"example-body")));
104
let len: Value<usize> = Rc::new(RefCell::new(
105
- ({
106
- let mut __i: usize = 0;
107
- while (*text.borrow()).offset(__i).read() != 0 {
108
- __i += 1;
109
- }
110
- __i
111
- })
112
- .wrapping_add(1_usize),
+ ((*text.borrow()).to_string_iterator().count()).wrapping_add(1_usize),
113
));
114
let total: Value<usize> = Rc::new(RefCell::new(
115
((2_usize as u64).wrapping_add(((*len.borrow()) as u64)) as usize),
0 commit comments