Skip to content

Commit c1214c9

Browse files
committed
Update tests
1 parent 67d35b6 commit c1214c9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/unit/out/refcount/simple_index.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ pub fn main() {
1111
}
1212
fn main_0() -> i32 {
1313
let v: Value<Vec<bool>> = Rc::new(RefCell::new(vec![true]));
14-
return ((*(v.as_pointer() as Ptr<bool>)
14+
return (((*(v.as_pointer() as Ptr<bool>)
1515
.offset(0_u64 as isize)
1616
.upgrade()
17-
.deref()) as i32);
17+
.deref()) as bool) as i32);
1818
}

tests/unit/out/unsafe/simple_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ pub fn main() {
1313
}
1414
unsafe fn main_0() -> i32 {
1515
let mut v: Vec<bool> = vec![true];
16-
return (v[(0_u64) as usize] as i32);
16+
return ((v[(0_u64) as usize] as bool) as i32);
1717
}

0 commit comments

Comments
 (0)