Skip to content

Register error-chain cfg for rustc checking. - #241

Merged
Randy808 merged 1 commit into
Blockstream:new-indexfrom
Randy808:fix-error-chain-warning
Aug 6, 2026
Merged

Register error-chain cfg for rustc checking.#241
Randy808 merged 1 commit into
Blockstream:new-indexfrom
Randy808:fix-error-chain-warning

Conversation

@Randy808

@Randy808 Randy808 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Register has_error_description_deprecated as a known Rust cfg.

error-chain 0.12.4 emits this cfg while expanding its macro in electrs. Recent Rust toolchains therefore report it as unexpected, even though it originates in
the dependency.

This narrowly registers that cfg instead of disabling the unexpected_cfgs lint. There are no runtime behavior changes.

Testing

  • cargo check --locked
  • cargo check --features liquid --locked

Both builds pass and no longer emit the has_error_description_deprecated warning.

@Randy808 Randy808 self-assigned this Aug 5, 2026
@Randy808
Randy808 merged commit b71a5a5 into Blockstream:new-index Aug 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants