Skip to content

Commit e3ce76a

Browse files
committed
Update tests
1 parent e6c44c7 commit e3ce76a

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

‎tests/unit/out/refcount/class_templates.rs‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ impl MyContainer_int_ {
1717
pub fn size(&self) -> usize {
1818
return (*self.vec_.borrow()).len();
1919
}
20-
pub fn back_const(&self) -> Ptr<i32> {
21-
return (self.vec_.as_pointer() as Ptr<i32>).to_last();
22-
}
2320
pub fn back(&self) -> Ptr<i32> {
2421
return (self.vec_.as_pointer() as Ptr<i32>).to_last();
2522
}
@@ -66,9 +63,6 @@ impl MyContainer_char_ {
6663
pub fn size(&self) -> usize {
6764
return (*self.vec_.borrow()).len();
6865
}
69-
pub fn back_const(&self) -> Ptr<u8> {
70-
return (self.vec_.as_pointer() as Ptr<u8>).to_last();
71-
}
7266
pub fn back(&self) -> Ptr<u8> {
7367
return (self.vec_.as_pointer() as Ptr<u8>).to_last();
7468
}
@@ -115,9 +109,6 @@ impl MyContainer_float_ {
115109
pub fn size(&self) -> usize {
116110
return (*self.vec_.borrow()).len();
117111
}
118-
pub fn back_const(&self) -> Ptr<f32> {
119-
return (self.vec_.as_pointer() as Ptr<f32>).to_last();
120-
}
121112
pub fn back(&self) -> Ptr<f32> {
122113
return (self.vec_.as_pointer() as Ptr<f32>).to_last();
123114
}

‎tests/unit/out/unsafe/class_templates.rs‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ impl MyContainer_int_ {
1818
pub unsafe fn size(&self) -> usize {
1919
return self.vec_.len();
2020
}
21-
pub unsafe fn back_const(&self) -> *const i32 {
22-
return ((self.vec_).last().unwrap());
23-
}
2421
pub unsafe fn back(&mut self) -> *mut i32 {
2522
return ((self.vec_).last_mut().unwrap());
2623
}
@@ -47,9 +44,6 @@ impl MyContainer_char_ {
4744
pub unsafe fn size(&self) -> usize {
4845
return self.vec_.len();
4946
}
50-
pub unsafe fn back_const(&self) -> *const libc::c_char {
51-
return ((self.vec_).last().unwrap());
52-
}
5347
pub unsafe fn back(&mut self) -> *mut libc::c_char {
5448
return ((self.vec_).last_mut().unwrap());
5549
}
@@ -76,9 +70,6 @@ impl MyContainer_float_ {
7670
pub unsafe fn size(&self) -> usize {
7771
return self.vec_.len();
7872
}
79-
pub unsafe fn back_const(&self) -> *const f32 {
80-
return ((self.vec_).last().unwrap());
81-
}
8273
pub unsafe fn back(&mut self) -> *mut f32 {
8374
return ((self.vec_).last_mut().unwrap());
8475
}

0 commit comments

Comments
 (0)