Rust 工具链升级 #22
AsakuraMizu
started this conversation in
General
Replies: 2 comments 1 reply
-
|
临时解决方案还有VS Code在扩展页面可以选择rust-analyzer版本进行安装。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
差不多该升级 Rust 工具链了。
供参考:半年前,从 nightly-2024-12-25 升级到了 nightly-2025-05-20
主要问题
rust-analyzer MSRV 升级到 1.90
rust-analyzer 最近将最低支持的 Rust 版本提升到了 1.90。如果使用 VSCode 等 IDE 的 rust-analyzer 插件,插件会内置一个 rust-analyzer,就将无法工作。临时解决方案:
/usr/lib/rustup/bin/rust-analyzer。其他常见的路径包括~/.cargo/bin/rust-analyzer,请根据具体情况进行调整doc_auto_cfgfeature 合入doc_cfg这个影响不是很大。
BorrowedBufandBorrowedCursorrust-lang/rust#148937BorrowedBuf相关类型的语义和接口变更。这个主要影响到 http://github.com/arceos-org/axio/tree/dev ,因为我们在实现default_read_to_end的时候参考了 std 中的实现,并使用了BorrowedBuf。这次更新中把这部分代码也做了不少修改。其他问题
function_casts_as_integerlint rust-lang/rust#141470fn() as usize将要求写成fn() as *const () as usizemismatched-lifetime-syntaxeslint rust-lang/rust#138677需要在一些返回带隐式 lifetime 的类型的函数签名中添加
'_Beta Was this translation helpful? Give feedback.
All reactions