Skip to content

Commit 4c6616d

Browse files
idl: Fix local_file method not found for proc_macro2::Span error (solana-foundation#4187)
1 parent 755692a commit 4c6616d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ The minor version will be incremented upon a breaking change and the patch versi
2626
- lang: Fix `declare_program!` messing up IDL errors generation ([#4126](https://github.com/solana-foundation/anchor/pull/4126)).
2727
- idl: Fix `address` constraint not resolving constants that have numbers in their identifiers ([#4144](https://github.com/solana-foundation/anchor/pull/4144)).
2828
- lang: Fix constant nested string generation in `declare_program!` ([#4158](https://github.com/solana-foundation/anchor/pull/4158)).
29+
- idl: Fix `local_file` method not found for `proc_macro2::Span` error ([#4187](https://github.com/solana-foundation/anchor/pull/4187)).
2930

3031
### Breaking
3132

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lang/syn/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ bs58 = "0.5"
2626
# `idl-build` feature only
2727
cargo_toml = { version = "0.19", optional = true }
2828
heck = "0.3"
29-
proc-macro2 = { version = "1", features = ["span-locations"] }
29+
# `Span::local_file` required by the `idl-build` feature was stabilized in `1.0.100`
30+
proc-macro2 = { version = "1.0.100", features = ["span-locations"] }
3031
quote = "1"
3132
serde = { version = "1", features = ["derive"] }
3233
serde_json = "1"

0 commit comments

Comments
 (0)