Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow unexpected_cfgs #685

Merged

Conversation

tcharding
Copy link
Member

@tcharding tcharding commented May 7, 2024

Rust nightly just introduced a new lint that breaks us, disable it.

Same as rust-bitcoin/rust-bitcoin#2748

Please see 2748 for full description of the issue this resolves.

Note, the first patch uses rustfmt::skip instead of cfg_attr to save triggering the lint in example code.

@tcharding tcharding force-pushed the 05-08-allow-unexpected-cfgs branch from c5c5213 to bf3564a Compare May 7, 2024 22:04
tcharding added 2 commits May 8, 2024 08:17
Currently we use `cfg_attr` to disable the formatter so that the
attribute can be on an expression.

There was a new lint introduced into nightly just recently that checks
cfg args, this `cfg_attr` usage triggers it.

Use `rustfmt::skip` instead and put it on the function because it
doesn't currently work on expressions.
Rust `nightly` just introduced a new lint that breaks us, disable it.

Same as rust-bitcoin/rust-bitcoin#2748

Please see 2748 for full description of the issue this resolves.
@tcharding tcharding force-pushed the 05-08-allow-unexpected-cfgs branch from bf3564a to ed869d7 Compare May 7, 2024 22:18
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK ed869d7

@apoelstra apoelstra merged commit 15ddc86 into rust-bitcoin:master May 8, 2024
16 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