diff --git a/CHANGELOG.md b/CHANGELOG.md index 36932efd2..49881883e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lang/syn/Cargo.toml b/lang/syn/Cargo.toml index 3d4afa013..ae70f2e8e 100644 --- a/lang/syn/Cargo.toml +++ b/lang/syn/Cargo.toml @@ -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)"] }