知识卡片

普通读书笔记卡 · 6076

版次与编译器版本分开

理解等级:中级

复现示例需分别确认语言edition和编译器版本:本书采用edition2018与rustc1.70。较新工具链可以支持旧edition,但这不等于改用新edition永远无需调整;诊断文本也可能变化。记录这两个维度,有助区分代码规则、工具能力和编译器提示的差异。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Preface Rust Version · 查看原书依据

      The specific rustc version used for code fragments and error messages is 1.70. The code fragments are unlikely to need changes for later versions, but the error messages may vary with your particular compiler version. The error messages included in the text have also been manually edited to fit within the width constraints of the book but are otherwise as pr

    参考来源

    - 位置:《Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)》第0章《Rust Version》(spine4;extracted/Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)/_epub-src/OEBPS/preface01.html;u003-ch00-003)。 - 结论依据:原文在“The specific rustc version”附近的定义、例子或代码支撑本卡核心说明:复现示例需分别确认语言edition和编译器版本:本书采用edition2018与rustc1.70。边界按已读前提解释;示例未执行。 - 原始内容:The specific rustc version used for code fragments and error messages is 1.70. The code fragments are unlikely to need changes for later versions, but the error messages may vary with your particular compiler version. The error messages included in the text have also been manually edited to fit within the width constraints of the book but are otherwise as pr