You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Run anchor build
use of unstable library feature 'offset_of'
--> /Users/yjhmelody/.cargo/registry/src/index.crates.io-6f17d22bba15001f/solana-program-1.18.22/src/program.rs:441:20
|
441 | assert_eq!(offset_of!(StableInstruction, program_id), 48);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #106655 <https://github.com/rust-lang/rust/issues/106655> for more information
= help: add `#![feature(offset_of)]` to the crate attributes to enable
= note: this compiler was built on 2024-01-15; consider upgrading it if it is out of date
= note: this error originates in the macro `_memoffset__offset_of_impl` which comes from the expansion of the macro `offset_of` (in Nightly builds, run with -Z macro-backtrace for more info)
Ok, it work when override it. But better to always print current version for anchor build, since we really do not know which version it was being used.
It could not generate idl but works for
anchor build --no-idl
.The text was updated successfully, but these errors were encountered: