小编Jw *_*w C的帖子

更改夜间 Rust 版本?

我尝试通过命令构建rlscargo +nightly build --release -Z unstable-options,但出现以下错误:

error[E0599]: no method named `expect_none` found for enum `Option<Fingerprint>` in the current scope
    --> /Users/cjw/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc-ap-rustc_span-705.0.0/src/lib.rs:2003:48
     |
2003 |                 cache[index].replace(sub_hash).expect_none("Cache slot was filled");
     |                                                ^^^^^^^^^^^ method not found in `Option<Fingerprint>`
Run Code Online (Sandbox Code Playgroud)

经过搜索,我发现这expect_none是一个夜间功能,似乎已被删除。

所以我想也许我应该更改 rust 编译器版本来解决编译问题。如果这是正确的解决方案,我该怎么做?有人可以提供一些详细的建议吗?

build rust rust-cargo rust-language-server

4
推荐指数
1
解决办法
7581
查看次数

标签 统计

build ×1

rust ×1

rust-cargo ×1

rust-language-server ×1