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

Bump anchor-syn from 0.29 to 0.30 #102

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
/lints/*/ui/*/Cargo.lock
/lints/*/target_*
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
anchor-syn = "0.29.0"
anchor-syn = "0.30.0"
clippy_utils = { git = "https://github.com/rust-lang/rust-clippy", rev = "ac4c2094a6030530661bee3876e0228ddfeb6b8b" }
if_chain = "1.0"
syn = { version = "1.0.109", features = ["parsing"] }
Expand Down
26 changes: 23 additions & 3 deletions crate/diffs/insecure_account_close.diff
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,20 @@ diff -r -x Cargo.lock ./insecure-still-still/Cargo.toml ../../../../lints/insecu
diff -r -x Cargo.lock ./insecure-still-still/src/lib.rs ../../../../lints/insecure_account_close/ui/insecure-still-still/src/lib.rs
1a2
> use anchor_lang::solana_program::entrypoint::ProgramResult;
45a47,49
6a8,11
> // S3v3ru5: Anchor does not use CLOSED_ACCOUNT_DISCRIMINATOR from v0.30
> // ref: https://github.com/coral-xyz/anchor/pull/2726
> pub const CLOSED_ACCOUNT_DISCRIMINATOR: [u8; 8] = [255, 255, 255, 255, 255, 255, 255, 255];
>
25d29
<
28,30c32
< cursor
< .write_all(&anchor_lang::__private::CLOSED_ACCOUNT_DISCRIMINATOR)
< .unwrap();
---
> cursor.write_all(&CLOSED_ACCOUNT_DISCRIMINATOR).unwrap();
45a48,50
>
> #[allow(dead_code)]
> fn main() {}
Expand Down Expand Up @@ -68,9 +81,16 @@ diff -r -x Cargo.lock ./secure/Cargo.toml ../../../../lints/insecure_account_clo
>
> [workspace]
diff -r -x Cargo.lock ./secure/src/lib.rs ../../../../lints/insecure_account_close/ui/secure/src/lib.rs
2a3
1d0
< use anchor_lang::__private::CLOSED_ACCOUNT_DISCRIMINATOR;
2a2
> use anchor_lang::solana_program::entrypoint::ProgramResult;
71a73,75
7a8,11
> // S3v3ru5: Anchor does not use CLOSED_ACCOUNT_DISCRIMINATOR from v0.30
> // ref: https://github.com/coral-xyz/anchor/pull/2726
> pub const CLOSED_ACCOUNT_DISCRIMINATOR: [u8; 8] = [255, 255, 255, 255, 255, 255, 255, 255];
>
71a76,78
>
> #[allow(dead_code)]
> fn main() {}
Expand Down
3 changes: 3 additions & 0 deletions crate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ extern crate rustc_driver;
pub mod paths;

pub mod utils;

pub use anchor_syn;
pub use syn;
Loading