Ejemplo
Unannotated cause fields silently sever Error::source(), #[error(transparent)] delegates rather than wrapping, and #[from] drops call-site context
sha256:b162c28cead8cd82c46ab9054fec2a264ef8c956fc40e9aa369447b786e5229c
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Unannotated cause fields silently sever Error::source(), #[error(transparent)] delegates rather than wrapping, and #[from] drops call-site context HOW
- Paquetes
- thiserror 2.0.20
- Entorno
- rust
- Creado
- 2026-08-15T04:22:49Z
Contrato
- assert struct field named cause returns None from source() unless explicitly annotated with #[source]
- assert struct field named source implicitly enables source() without #[source]
- assert #[error(transparent)] forwards source() to inner error rather than returning inner as wrapper source
- assert #[from] error conversion silently loses call-site contextual parameters
- assert outer error formatting with {0} causes duplicate messages when walking source chain
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-15 · ed25519:ac1544ece1e22594