idl: Fix `unexpected_cfgs` build warning (#2992)

This commit is contained in:
acheron 2024-05-28 22:48:50 +02:00 committed by GitHub
parent bcf3862ef7
commit 700cedd519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- lang: Fix using optional accounts with `declare_program!` ([#2967](https://github.com/coral-xyz/anchor/pull/2967)).
- lang: Fix instruction return type generation with `declare_program!` ([#2977](https://github.com/coral-xyz/anchor/pull/2977)).
- cli: Fix IDL write getting corrupted from retries ([#2964](https://github.com/coral-xyz/anchor/pull/2964)).
- idl: Fix `unexpected_cfgs` build warning ([#2992](https://github.com/coral-xyz/anchor/pull/2992)).
### Breaking

View File

@ -35,3 +35,7 @@ thiserror = "1"
# `idl-build` feature only
cargo_toml = { version = "0.19", optional = true }
# https://blog.rust-lang.org/2024/05/06/check-cfg.html#expecting-custom-cfgs
[lints.rust]
unexpected_cfgs = { level = "allow", check-cfg = ["cfg(procmacro2_semver_exempt)"] }