447#460
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #447
thiserror 2.x derive edge-case parity: audited five edge-case classes, fixed two real derive bugs, implemented one missing feature, locked the rest in with tests.
Fixed
r#sourceraw-identifier fields: implicit source inference already skipped them correctly, but they were unusable in#[error(\"{source}\")]templates ('unknown field') — member resolution now compares unraw forms (thiserror 2.0 chore(deps): bump itoa from 1.0.16 to 1.0.17 #350 parity)#[deprecated]types/variants emitted deprecation warnings from generated code — expansion now wrapped in#[allow(deprecated)] const _only when the input is deprecatedImplemented
#[error(fmt = path)]— shared formatter for variants without their own#[error], per-variant overrides (fmt/template/transparent) respected; enum-level templates rejected with specific errors (thiserror 2.0 parity)Verified working (tests added, no fix needed)
tail: [u8]) derives and implements Display/ErrorT: Displaybounds — the thiserror 2.0.10 bug class can't occurdeny(deprecated, unused_qualifications, clippy::needless_lifetimes, clippy::elidable_lifetime_names, clippy::allow_attributes, clippy::missing_inline_in_public_items)Tests
10-test edge-case integration file, new trybuild pass/fail cases (enum-level fmt, rejected enum-level template), unit tests for raw-ident handling. Full workspace suite (580 derive unit tests), doctests (176), clippy zero warnings, nightly fmt — all green.