Skip to content

Commit a612af5

Browse files
committed
refactor-unique: Change empty() -> dangling() in const-ptr-unique-rpass.rs
1 parent 74f08d0 commit a612af5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/ui/consts/const-ptr-unique-rpass.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ use test::black_box as b; // prevent promotion of the argument and const-propaga
88
use std::ptr::Unique;
99

1010

11-
const PTR: *mut u32 = Unique::empty().as_ptr();
11+
const PTR: *mut u32 = Unique::dangling().as_ptr();
1212

1313
pub fn main() {
1414
// Be super-extra paranoid and cast the fn items to fn pointers before blackboxing them.
15-
assert_eq!(PTR, b::<fn() -> _>(Unique::<u32>::empty)().as_ptr());
15+
assert_eq!(PTR, b::<fn() -> _>(Unique::<u32>::dangling)().as_ptr());
1616
}

0 commit comments

Comments
 (0)