2023-08-09
本文由 ChatGPT(gpt-3.5-turbo-1106) 翻译。
欢迎阅读本周的 This Week in Rust!Rust 是一种赋予每个人构建可靠和高效软件能力的编程语言。这是其进展和社区动态的每周摘要。希望有什么要提及的内容?在 Twitter 上标记我们 @ThisWeekInRust 或者在 mastodon.social 上标记 @ThisWeekinRust,或者发送给我们一个 pull request。想要参与其中吗?我们欢迎贡献。
This Week in Rust 是在 GitHub 上开发的,并且存档可以在 this-week-in-rust.org 查看。如果您发现本周问题中的任何错误,请提交一个 PR。
Debug本周的包是 deep_causality,一个超几何计算因果关系的库。
感谢 Marvin Hansen 自荐这个包!
一直想要为开源项目做贡献,但不知道从何开始? 每周我们都会为您突出展示一些 Rust 社区的任务,让您可以选择并开始参与!
其中一些任务可能会有导师提供帮助,请访问任务页面了解更多信息。
ockam completion clap 命令的文档,以指定如何使用它Error 枚举成员,并避免将来出现这样的成员如果您是 Rust 项目的所有者,并且正在寻找贡献者,请在这里提交任务。
上周有 417 个拉取请求被合并
max_atomic_width 为 16max_atomic_width 为 32Rc 和 Arclet 绑定时考虑宏async move 更友好的提示enum Operand 替换 ExpressionOperandIdstruct 尾部调整大小进行的 trait 上溯incorrect_fn_null_checks lintinvalid_reference_casting lint修复了 Repeat 表达式的对齐处理问题
使 [Lazy, Once]*[Cell, Lock] 的 Debug 表示与 Mutex 和 RwLock 保持一致
使 unconditional_recursion 警告能够检测到递归 drop 操作
使 lint missing-copy-implementations 能够尊重负的 Copy 实现
使测试框架关于不可命名测试的 lint 生效
只考虑在 each_borrow_involving_path 中具有相同本地变量的位置
只有在内联器期望参数被解包时,才在内联器中解包元组参数
常量验证:指出我们发现了指针但预期为整数的位置
优化 Iterator 对 &mut impl Iterator + Sized 的实现
在 HIR 上执行 OpaqueCast 字段投影
TraitPredicate 中移除 constnessconfusable_idents lintlibLLVM.so 和 librustc_driver.so 剥离意外的调试信息mir_for_ctfe 运行 ConstPropcompare_bytes 内部函数而不是直接调用 memcmpparent_module_from_def_id 不需要是一个查询](https://github.com/rust-lang/rust/pull/114516)rustc_data_structures: 简化 base_n::push_str](https://github.com/rust-lang/rust/pull/114306)rustc_span: 将按单词排序的查找移到循环外](https://github.com/rust-lang/rust/pull/114395)cg_llvm: 停止在 LLVM IR 中识别 ADT](https://github.com/rust-lang/rust/pull/114350)abi_thiscall(Bound<usize>, Bound<usize>) 实现 SliceIndex<str>](https://github.com/rust-lang/rust/pull/111081)Option::take_if](https://github.com/rust-lang/rust/pull/98935)unix/kernel_copy.rs: copy_file_range_candidate 允许空的输出文件](https://github.com/rust-lang/rust/pull/114373)tracing.. 闭包ptr_as_ptr: 获取片段而不是漂亮打印类型redundant_type_annotations: 仅将特定定义类型传递给 type_ofunnecessary_mut_passed: 不要在宏展开中进行 lintunwrap_used: 不要在 ! 或类似 never 枚举的情况进行 unwrapping lintmethods/mod.rs 中按字母顺序排序 match 中的分支suspicious_xor_used_as_pow.rs 性能问题ignored_unit_patternsimpossible_comparisons 和 redundant_comparisonsquestion_mark_used 不允许,则抑制 question_mark 警告doc(hidden) 默认成员generate_default_from_newstruct 问题add_missing_match_arms 助手2023年8月9日至2023年9月6日之间的 Rusty 活动 🦀
如果您正在举办 Rust 活动,请将其添加到日历,以便在此处提及。请记得添加活动链接。发送电子邮件至Rust社区团队以获取访问权限。
请参阅最新的 r/rust 谁在招聘帖子
声称 Rust 对你没有帮助,因为你在做很多不安全的操作,就好像声称防护装备对你没有帮助,因为你在处理很多危险的物质一样。
llogiq 对他自己的建议感到非常自满!
This Week in Rust 的编辑人员包括:nellshamrell, llogiq, cdmistman, ericseppanen, extrawurst, andrewpollack, U007D, kolharsam, joelmarcey, mariannegoldin, bennyvasquez.
邮箱列表托管由 The Rust Foundation 赞助