We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Bitcast
1 parent d295a51 commit 4f46808Copy full SHA for 4f46808
crates/core/src/abi.rs
@@ -536,11 +536,21 @@ pub enum Bitcast {
536
I64ToI32,
537
I64ToF32,
538
539
- // Pointers
540
- P64ToI64,
541
- I64ToP64,
+ // PointerOrI64<->Pointer conversions. These preserve provenance.
+ //
+ // These are used when pointer values are being stored in
542
+ // (PToP64) and loaded out of (P64ToP) PointerOrI64 values, so they
543
+ // always have to preserve provenance.
544
P64ToP,
545
PToP64,
546
+
547
+ // Pointer<->integer conversions. These do not preserve provenance.
548
549
+ // These are used when integer values are being stored in
550
+ // (I64ToP64 and I32ToP) and loaded out of (P64ToI64 and PToI32) pointer
551
+ // or PointerOrI64 values, so they never have any provenance to preserve.
552
+ P64ToI64,
553
+ I64ToP64,
554
I32ToP,
555
PToI32,
556
0 commit comments