Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b12ab29

Browse files
committedMar 23, 2024
rename expose_addr to expose
1 parent 020bbe4 commit b12ab29

File tree

44 files changed

+94
-89
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+94
-89
lines changed
 

‎compiler/rustc_borrowck/src/type_check/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,7 +2245,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
22452245
}
22462246
}
22472247

2248-
CastKind::PointerExposeAddress => {
2248+
CastKind::PointerExpose => {
22492249
let ty_from = op.ty(body, tcx);
22502250
let cast_ty_from = CastTy::from_ty(ty_from);
22512251
let cast_ty_to = CastTy::from_ty(*ty);
@@ -2255,7 +2255,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
22552255
span_mirbug!(
22562256
self,
22572257
rvalue,
2258-
"Invalid PointerExposeAddress cast {:?} -> {:?}",
2258+
"Invalid PointerExpose cast {:?} -> {:?}",
22592259
ty_from,
22602260
ty
22612261
)

‎compiler/rustc_codegen_cranelift/src/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ fn codegen_stmt<'tcx>(
641641
| CastKind::IntToFloat
642642
| CastKind::FnPtrToPtr
643643
| CastKind::PtrToPtr
644-
| CastKind::PointerExposeAddress
644+
| CastKind::PointerExpose
645645
| CastKind::PointerFromExposedAddress,
646646
ref operand,
647647
to_ty,

0 commit comments

Comments
 (0)