From 9924264e871dd1160fdee0f4331e0cce018d61b2 Mon Sep 17 00:00:00 2001 From: acheron Date: Tue, 28 May 2024 22:15:07 +0200 Subject: [PATCH 1/2] idl: Fix `unexpected_cfgs` build warning --- lang/syn/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lang/syn/Cargo.toml b/lang/syn/Cargo.toml index 3d4afa0134..ae70f2e8e8 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)"] } From 49c7cdd45c5b69364526c14b3e89b2ff3453c294 Mon Sep 17 00:00:00 2001 From: acheron Date: Tue, 28 May 2024 22:16:53 +0200 Subject: [PATCH 2/2] Update CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36932efd22..49881883e7 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