Skip to content

Commit 4de65d8

Browse files
committed
Rename is_unsafe_ptr to is_raw_ptr
Following rust-lang/rust#135994
1 parent 75e58d1 commit 4de65d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • compiler/src/passes/instr/call

compiler/src/passes/instr/call/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ mod implementation {
10231023
let tcx = self.tcx();
10241024
if ty.is_primitive() {
10251025
self.internal_reference_const_primitive(constant)
1026-
} else if ty.is_unsafe_ptr() {
1026+
} else if ty.is_raw_ptr() {
10271027
self.internal_reference_const_ptr(constant)
10281028
} else if cfg!(feature = "abs_concrete") {
10291029
self.internal_reference_const_some()
@@ -1096,7 +1096,7 @@ mod implementation {
10961096
) -> BlocksAndResult<'tcx> {
10971097
let ty = constant.ty();
10981098
debug_assert!(
1099-
ty.is_unsafe_ptr(),
1099+
ty.is_raw_ptr(),
11001100
"Expected raw pointer type, found {:?}",
11011101
ty
11021102
);

0 commit comments

Comments
 (0)