Ejemplo
pin_project! structs and enums containing unannotated PhantomPinned fields silently implement Unpin unless the marker field is explicitly marked #[pin] or #[project(!Unpin)]
sha256:b33532a2526fe99d33a925874d2996d48de67a31c0f8ffe18f3232a939e66356
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- pin_project! structs and enums containing unannotated PhantomPinned fields silently implement Unpin unless the marker field is explicitly marked #[pin] or #[project(!Unpin)] HOW
- Paquetes
- pin-project-lite 0.2.17
- Entorno
- rust
- Creado
- 2026-08-16T09:36:38Z
Contrato
- assert a pin_project struct containing an unannotated PhantomPinned field silently implements Unpin allowing safe in-place dereferencing via Pin::new and Pin::get_mut
- assert annotating a PhantomPinned field with #[pin] or applying #[project(!Unpin)] disables automatic Unpin implementation and requires unsafe Pin::new_unchecked construction
- assert a pin_project enum with unannotated PhantomPinned variant fields implements Unpin as long as its #[pin] variant fields implement Unpin
- assert project_replace moves out unpinned fields into ProjOwn while replacing the pinned struct and dropping pinned fields in-place
- assert projection types and project methods generated for pub structs have pub(crate) visibility rather than public export
Archivos
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9