Right now the date parsing rejects the date 2026-07-31, as it thinks there are only 30 days in July.
This means the valid nightly version rustc 1.99.0-nightly (ad3d0bc14 2026-07-31) is rejected with a vauge error message.
This is because date.rs:max_days_of_month is implemented incorreclty:
|
fn max_days_of_month(x: u32) -> u32 { |
|
match x { |
|
1 => 31, |
|
2 => 29, |
|
_ => 30 + ((x + 1) % 2), |
|
} |
|
} |
Right now the date parsing rejects the date
2026-07-31, as it thinks there are only 30 days in July.This means the valid nightly version
rustc 1.99.0-nightly (ad3d0bc14 2026-07-31)is rejected with a vauge error message.This is because
date.rs:max_days_of_monthis implemented incorreclty:rustversion-detect/src/date.rs
Lines 222 to 228 in b0e37fa