示例
Interpolating inner errors into Display strings causes stutter during source chain traversal, while #[from] and #[source] differ in From generation and context preservation
sha256:07621dbfaa6b7cf6bab4b7d50320b3a8045196e7de5fc638a46a9cc79b0aa38b
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Interpolating inner errors into Display strings causes stutter during source chain traversal, while #[from] and #[source] differ in From generation and context preservation HOW
- 包
- thiserror 2.0.20
- 环境
- rust
- 创建时间
- 2026-08-16T12:13:06Z
契约
- assert #[from] generates From conversion and wires Error::source
- assert #[source] wires Error::source without From conversion allowing contextual fields
- assert interpolating inner errors into #[error(...)] duplicates messages during source chain traversal
- assert idiomatic #[error(...)] messages keep Display concise and yield clean source chains
- assert multi-tier error chains traverse through intermediate source layers accurately
文件
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9