我正在写rust宏,遇到一个关于我的宏的错误,我不能理解。为了更好地理解它,我试图遵循编译器的建议,设置-Z macro-backtrace不稳定选项,然后再次编译。这里是说的建议: note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for moreoverride nightly和rustup
我正在尝试编译上的所有合同。Consider trying a newer version of Cargo (this may require the nightly release).See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2021 for more information我厌倦了运行这个:
我正试图经营一个生锈的项目。我经常遇到这个2021版本的错误:rustc 1.60.0-nightly (a7e2e3396 2022-01-08)If you are tryingparse manifest at /workdir/program/Cargo.toml
the cargo feature edition2021 requires a nightly我发现
我想使用Rust的“夜间”版本来处理箭头和数据扩散。根据和rustup ,我应该能够在项目的主目录中放置一个rust-toolchain文件,其中只包含单词"nightly“,这应该使其成为该项目的默认构建。然而,这并不起作用。当我检查默认设置时,我看到它使用的是“稳定”版本。:data_fusion_tutorial Daniel$ ls -a
. .. .git .gitignore Cargo.lo
我的构建失败了。在我用命令测试我的契约之前,一切看起来都很好:我收到错误E0282error[E0282]: type annotations needed| |__- in this macro invocation = note: this error originates in a macro (in Nightlyerror: could not compile `sp-arithmetic`
这是
我得到以下错误:Error: Pear requires a nightlyor dev version of Rust.Minimum required: 1.31.0-nightly (2018-10-05).
我是生疏的,但来自其他语言,这是毫无意义的。它至少需要1.31.0版本,但我已经安装了1.33.0版本。