gpt4 book ai didi

rust - 为什么这个不相关的箱子破坏了我的项目?

转载 作者:行者123 更新时间:2023-11-29 08:36:25 26 4
gpt4 key购买 nike

$ cargo build
Downloading pear_codegen v0.0.16
Compiling pear_codegen v0.0.16
Compiling ring v0.11.0
error[E0023]: this pattern has 1 field, but the corresponding tuple variant has 2 fields
--> /.cargo/registry/src/github.com-1ecc6299db9ec823/pear_codegen-0.0.16/src/lib.rs:317:9
|
317 | ExprKind::Block(block) => {
| ^^^^^^^^^^^^^^^^^^^^^^ expected 2 fields, found 1

error: aborting due to previous error

For more information about this error, try `rustc --explain E0023`.
error: Could not compile `pear_codegen`.
warning: build failed, waiting for other jobs to finish...
error: build failed

当我尝试编译我的项目时,我收到一条错误消息,指出不在我的 cargo.toml 中的箱子已损坏。为什么这个不相关的箱子破坏了我的项目?

最佳答案

你每晚都在使用 Rust,并且有问题的 crate 过去依赖于(在版本 0.0.16 中)Rust 编译器的永久不稳定的 API,它被你每晚更改了更新到(或刚刚安装)。
作者appears to have recently rewritten crate 以避免这种依赖性,这意味着应该避免进一步破坏,从 crate 的版本 0.0.17 开始。

关于rust - 为什么这个不相关的箱子破坏了我的项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50539818/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com