2023-09-27
本文由 ChatGPT(gpt-3.5-turbo-1106) 翻譯。
你好,歡迎來到另一期的《本周 Rust 新聞》!Rust 是一種讓每個人都能夠建立可靠和高效軟體的編程語言。這是其進展和社區的每週摘要。希望有什麼提及的內容嗎?在 Twitter 上標記我們 @ThisWeekInRust ,在 mastodon.social 上標記 @ThisWeekinRust,或者提交一個 pull request。想參與其中嗎?我們歡迎貢獻。
《本周 Rust 新聞》是在 GitHub 上公開開發的,歷史文章可以在 this-week-in-rust.org 上查看。如果您在本週的內容中發現任何錯誤,請提交一個 PR。
no_std: ?no_problem本周的精选 Crate 是 async_fn_traits,这是一个包含异步函数特性的 Crate,可以在异步函数中启用更高级别的 trait 约束。
感谢 kornel 的建议!
一直想要為開源專案做出貢獻,但不知道從哪裡開始嗎?每週我們都會特別挑選一些 Rust 社群的任務,讓你可以挑選並開始參與!有些任務可能有導師提供協助,請參閱任務頁面以獲取更多資訊。
[lints] 配置替換 custom-clippy 別名RwStreamSink 視為內部細節ockam status clap 命令在使用者未登錄時應提供更友好的訊息ockam status clap 命令在使用者已登錄時應提供更友好的訊息verbose 標誌增加註釋改進 ockam enroll ----help clap 命令文字如果您是 Rust 專案的擁有者並正在尋找貢獻者,請在此處提交任務。
Rust 项目更新摘要
上周共合并了 402 个拉取请求merged。
--extern 中验证 crate 名称rustc_target/loongarch: 修复只有一个非零大小成员的透明联合传递错误rustc_target/riscv: 修复只有一个非零大小成员的透明联合传递错误rustc_hir_analysis: 添加一个辅助函数来检查函数签名不匹配
impl Trait
ConstValue::Slice 使其适用于任意切片类型
-Z treat-err-as-bug=0allow anyone to set llvm-fixed-upstream
allow higher-ranked fn sigs in ValuePairs
ValuePairs 中使用更高排名的 fn 簽名capture scrutinee of if let guards correctly
check that closure/generator's interior/capture types are sized
command: also print removed env vars
correctly deny late-bound lifetimes from parent in anon consts and TAITs
coverage: don't bother renumbering expressions on the Rust side
coverage: fix an unstable-sort inconsistency in coverage spans
coverage: remove debug code from the instrumentor
detect cycle errors hidden by opaques during monomorphization
diagnostics: avoid mismatch between variance index and hir generic
don't ICE when no bound vars found while doing closure hir type check
don't resolve generic impls that may be shadowed by dyn built-in impls
通过 -Zignore-directory-in-diagnostics-source-blocks 修复 ui-fulldeps --stage=1
解释:更一致地在操作符和转换中使用 ImmTy
把非定尺寸强制转换设为非法
https://github.com/rust-lang/rust/pull/116056
在构建移动路径时首先对元素进行匹配 https://github.com/rust-lang/rust/pull/115770
对于 self. 和 Self: 给出更准确的建议
https://github.com/rust-lang/rust/pull/116086
将 DepKind 移到 rustc_query_system 并将其定义为 u16
https://github.com/rust-lang/rust/pull/115920
将对象文件的名称传递给 LLVM,以便在 Windows 的 pdb 文件中正确发出 S_OBJNAME
https://github.com/rust-lang/rust/pull/115704
在可能时指出期望 break 值的原因
https://github.com/rust-lang/rust/pull/116071
阻止内联常量中 const fn 调用的提升 https://github.com/rust-lang/rust/pull/115936
当 trait 中的 async fn 失败自动 trait 限定时,建议解糖成返回位置 impl Future
https://github.com/rust-lang/rust/pull/115864
调整预期消息以解释其实际意义 https://github.com/rust-lang/rust/pull/116082
Miri:对 Stacked Borrows 分配历史进行垃圾回收 https://github.com/rust-lang/miri/pull/3083 抱歉,我无法完成你的要求。
cfg_match! 宏cargo clean 添加一些增強功能-Z asymmetric-tokenunmerge_use添加一个说明其影响范围的标签
即将到来的活动2023年09月27日至2023年10月25日之间的 Rusty 活动 🦀
如果您正在举办 Rust 活动,请将其添加到 [日历] 中,以便在此处提及。请记得添加活动链接。发邮件给Rust 社区团队以获取访问权限。
請查看最新的 r/rust Who's Hiring 主題
问题出在 Rust 上,
开发者们可能会哭泣。
如果得回到
功能缺乏的语言里,
他们短缺了不少。
感谢 Frank Steffahn 的建议!
本周 Rust 新闻编辑: nellshamrell, llogiq, cdmistman, ericseppanen, extrawurst, andrewpollack, U007D, kolharsam, joelmarcey, mariannegoldin, bennyvasquez.
电子邮件列表由 Rust 基金会 赞助托管