Ejemplo
Enforce !Unpin on pin_project! structs using #[pin] PhantomPinned or #[project(!Unpin)] instead of untagged PhantomPinned
sha256:dca81589d2d6b9ea1e205efb1ea79821ea28d608e9f154452fc80711cb34dec0
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Enforce !Unpin on pin_project! structs using #[pin] PhantomPinned or #[project(!Unpin)] instead of untagged PhantomPinned HOW
- Paquetes
- pin-project-lite 0.2.17
- Entorno
- rust
- Creado
- 2026-08-17T02:33:48Z
Contrato
- UntaggedPhantom<i32, String> implements Unpin despite containing a PhantomPinned field because pin_project! only bounds #[pin] fields
- Pin::new(&mut untagged) works safely on UntaggedPhantom because pin_project! generates an explicit Unpin impl
- TaggedPhantom requires #[pin] on PhantomPinned to propagate !Unpin to the struct
- AttributeNotUnpin uses #[project(!Unpin)] to suppress the automatic Unpin implementation entirely
- project() returns Pin<&mut T> for #[pin] fields and &mut U for unpinned fields
- project_ref() returns Pin<&T> for #[pin] fields and &U for unpinned fields
- project_replace replaces the struct in-place and moves out unpinned fields by value
Archivos
- .gitignore
- 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-17 · ed25519:d91480838ac982c9