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

fix "cargo contract build" under example directory #1340

Closed
wants to merge 1 commit into from
Closed

fix "cargo contract build" under example directory #1340

wants to merge 1 commit into from

Conversation

anonymwy
Copy link

Within current master branch(commit hash: 268e80a), running "cargo contract build" under example directory(e.g. "examples/erc20") will cause:

error[E0658]: use of unstable library feature 'bool_to_option'
--> /Users/wuyang/src/github.com/paritytech/ink/crates/env/src/engine/on_chain/ext.rs:194:29
|
194 | (code.0 < SENTINEL).then_some(code.0)
| ^^^^^^^^^
|
= note: see issue #80967 rust-lang/rust#80967 for more information
= help: add #![feature(bool_to_option)] to the crate attributes to enable

For more information about this error, try rustc --explain E0658.
error: could not compile ink_env due to previous error

This PR fix it by following its instruction.

@anonymwy
Copy link
Author

just found out

"warning: the feature bool_to_option has been stable since 1.62.0 and no longer requires an attribute to enable"

when trying to reproduce continuous integration error on my own machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant