Matching wrong nightly versions by 1 day
还没有人认领这个 Issue。
评估
调研方向
使用 rustversion = "1.0.14"、#[rustversion::nightly(2023-09-13)] 属性以及 nightly-2023-09-13 和 nightly-2023-09-14 cargo 命令重现报告的行为。跟踪 nightly 日期匹配逻辑,并将其与发布名称进行比较;完成标准是该属性选择预期的编译器日期,并且演示的构建行为由回归测试覆盖。
由索引模型根据 Issue 内容生成。
描述
version: rustversion = "1.0.14"
#[rustversion::nightly(2023-09-13)]
fn main() {
println!("Hello, world!");
}
With nightly-2023-09-13:
cargo +nightly-2023-09-13 b
Compiling rustversion v1.0.14
Compiling rust-version-test v0.1.0 (D:\git-repos\github\rust-version-test)
error[E0601]: `main` function not found in crate `rust_version_test`
--> src\main.rs:4:2
|
4 | }
| ^ consider adding a `main` function to `src\main.rs`
For more information about this error, try `rustc --explain E0601`.
error: could not compile `rust-version-test` (bin "rust-version-test") due to previous error
With nightly-2023-09-14:
cargo +nightly-2023-09-14 b
Compiling rustversion v1.0.14
Compiling rust-version-test v0.1.0 (D:\git-repos\github\rust-version-test)
Finished dev [unoptimized + debuginfo] target(s) in 1.86s
As you can see, it fails to compile on nightly-2023-09-13, but succeeds on nightly-2023-09-14. I would expect the opposite behaviour to be true. It seems like the nightly version name is off by 1 compared to what rustversion thinks it is. I'm not sure if this is a bug in rustversion or in how the rust releases tag their names.
- 主要语言
- Rust
- 星标
- 397
- 派生
- 22
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dtolnay/rustversion 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
dtolnay/rustversion#69 ·
-
难度 3/5 1-2 天 新手友好度 35/100
dtolnay/rustversion#66 ·
-
难度 4/5 3-5 天 新手友好度 45/100
dtolnay/rustversion#42 ·
-
难度 3/5 1-2 天 新手友好度 35/100
dtolnay/rustversion#26 · 1 条评论 ·
查看 dtolnay/rustversion 的全部 Issue
相似的 Issue
-
Selected chart highlights only its values, not its series names and category labels可能已有人在做 @Higgs32584 今天认领。 未关闭bug priority: low ui
难度 2/5 1-3 小时 新手友好度 82/100
storytold/gridcraft#4390 · 2 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
bug bugfix priority: medium
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
quarto-dev/q2#1219 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100