Skip to content

Commit 6fff3e9

Browse files
committed
Update tests
1 parent 5156c52 commit 6fff3e9

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

tests/unit/out/refcount/fflush_null.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ pub fn main() {
1010
std::process::exit(main_0());
1111
}
1212
fn main_0() -> i32 {
13-
let file_ptr: Value<Ptr<::std::fs::File>> =
14-
Rc::new(RefCell::new(Ptr::<::std::fs::File>::null()));
13+
let file_ptr: Value<Ptr<::std::fs::File>> = Rc::new(RefCell::new(Ptr::null()));
1514
return if !(*file_ptr.borrow()).is_null() {
1615
match (*file_ptr.borrow()).with_mut(|v| v.sync_all()) {
1716
Ok(_) => 0,

tests/unit/out/refcount/fn_ptr_stdlib_compare.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn main_0() -> i32 {
6969
let _arg0: AnyPtr = AnyPtr::default();
7070
let _arg1: u64 = 0_u64;
7171
let _arg2: u64 = 0_u64;
72-
let _arg3: Ptr<::std::fs::File> = Ptr::<::std::fs::File>::null();
72+
let _arg3: Ptr<::std::fs::File> = Ptr::null();
7373
(*(*f3.borrow()))(_arg0, _arg1, _arg2, _arg3)
7474
}) == 22_u64)
7575
);
@@ -234,7 +234,7 @@ fn main_0() -> i32 {
234234
let _arg0: AnyPtr = AnyPtr::default();
235235
let _arg1: u64 = 0_u64;
236236
let _arg2: u64 = 0_u64;
237-
let _arg3: Ptr<::std::fs::File> = Ptr::<::std::fs::File>::null();
237+
let _arg3: Ptr<::std::fs::File> = Ptr::null();
238238
(*(*g3.borrow()))(_arg0, _arg1, _arg2, _arg3)
239239
}) == 33_u64)
240240
);

tests/unit/out/refcount/global_without_initializer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ thread_local!(
2323
pub static s: Value<Ptr<S>> = Rc::new(RefCell::new(Ptr::<S>::null()));
2424
);
2525
thread_local!(
26-
pub static file: Value<Ptr<::std::fs::File>> =
27-
Rc::new(RefCell::new(Ptr::<::std::fs::File>::null()));
26+
pub static file: Value<Ptr<::std::fs::File>> = Rc::new(RefCell::new(Ptr::null()));
2827
);
2928
thread_local!(
3029
pub static size: Value<u64> = <Value<u64>>::default();

0 commit comments

Comments
 (0)