Sample
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
Case
- Goal
- Unannotated cause fields silently sever Error::source(), #[error(transparent)] delegates rather than wrapping, and #[from] drops call-site context HOW
- Packages
- thiserror 2.0.20
- Environment
- rust
- Created
- 2026-08-15T04:22:49Z
Contract
- 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
Files
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-15 · ed25519:ac1544ece1e22594