跳到正文
热点事件历史事件

Rust 1.100.0 稳定 never type,版本号首破三位数

3 篇报道2 个报道来源首报17 天前更新

先了解这件事

AI 综述

rust-lang 发布 Rust 1.100.0 稳定版,版本号首次迈入三位数,语言层稳定 never type(!)与 extern "custom",库层稳定自定义分配器并新增 std::alloc 与容器 API,Infallible 成为其别名。据该发布说明,never type 历经约 10 年和 5 次稳定化尝试才转正,开发者可在任意位置显式使用,包括 Result<T, !>。同时,2015、2018、2021 版的 never type 回退由 () 改为 !,与 edition 2024 已有做法一致;Cargo 引入自身 linting 系统,部分警告可在 [lints.cargo] 中控制。 不兼容变更包括 box patterns 不再语法上允许;某处修正引入的破坏可向 Rust 传入 -Ctarget-feature=+d32 解决;检查构建目录的工具可能需改用 Cargo 的 JSON 消息定位构建产物。

AI 根据报道生成 · 17 天前更新

报道时间线

沿着报道,了解事件的不同侧面。

11月13日
  1. IT之家
    Rust 1.100.0 稳定版发布:版本号首破三位数,never type 历经 10 年转正

    Rust 团队于当地时间 11 月 12 日发布 Rust 1.100.0 稳定版,版本号首次迈入三位数。never type(!)经过约 10 年和 5 次稳定化尝试终于稳定,开发者可在任意位置显式使用,包括 Result<T, !

  2. Hacker News
    Rust 1.100 发布:never type 稳定、Allocator API 核心稳定

    Rust 发布 1.100.0,never type(!)历经 10 年和 5 次稳定化尝试失败后终于稳定,Infallible 随之成为其别名,并引入 2024 版之前 never type 从 () 回退到 !

  3. Hacker News
    Rust 1.100.0 发布:稳定 never type、extern "custom" 与自定义分配器

    Rust 1.100.0 发布,语言层稳定 never type 相关 Lint 与 extern "custom",库层稳定自定义分配器并新增大量 std::alloc 与容器 API。