TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Rust 1.80.0 breaks existing code

4 点作者 amscotti10 个月前

2 条评论

lifthrasiir10 个月前
Don&#x27;t feel like a secondary source is necessary here, see @kornel&#x27;s post [1], the actual issue [2] and the related libs-team minutes [3] [4] for the direct context.<p>To be clear, not just Rust but virtually every upgrade has a potential to break <i>someone</i>&#x27;s code, so we are really talking about the higher-than-normal breakage ratio due to a particular popular crate being hit by this issue. In my understanding, such type inference failure is already described as an acceptable breakage per RFC 1122 [5] and this issue was deemed acceptable as such. After all, such breakage can be mechanically resolved with an additional annotation and `Cargo.lock` should be easy to update. But it is likely that any future PR with a potential type inference failure will require a mandatory crater run to gauge its actual impact.<p>[1] <a href="https:&#x2F;&#x2F;internals.rust-lang.org&#x2F;t&#x2F;type-inference-breakage-in-1-80-has-not-been-handled-well&#x2F;21374" rel="nofollow">https:&#x2F;&#x2F;internals.rust-lang.org&#x2F;t&#x2F;type-inference-breakage-in...</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;127343">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;127343</a><p>[3] <a href="https:&#x2F;&#x2F;hackmd.io&#x2F;xS913qb6QFCGHrdHB0uhBw#nominated-rusttf127343-regression-type-annotations-needed-for-Boxlt_gt" rel="nofollow">https:&#x2F;&#x2F;hackmd.io&#x2F;xS913qb6QFCGHrdHB0uhBw#nominated-rusttf127...</a><p>[4] <a href="https:&#x2F;&#x2F;hackmd.io&#x2F;ROIVABA2QCOQSYFo9txhLw#nominated-rusttf125319-Type-inference-regression-on-nightly-2024-05-20" rel="nofollow">https:&#x2F;&#x2F;hackmd.io&#x2F;ROIVABA2QCOQSYFo9txhLw#nominated-rusttf125...</a><p>[5] <a href="https:&#x2F;&#x2F;rust-lang.github.io&#x2F;rfcs&#x2F;1122-language-semver.html#underspecified-language-semantics" rel="nofollow">https:&#x2F;&#x2F;rust-lang.github.io&#x2F;rfcs&#x2F;1122-language-semver.html#u...</a>
bdjsiqoocwk10 个月前
Yikes. It sounds like Rust isn&#x27;t easy for production. Too unstable.