Mismatch between rustup version and rustc version?

I ran this command:

$ rustc +nightly-2023-05-25 -vV
rustc 1.71.0-nightly (c373194cb 2023-05-24)
binary: rustc
commit-hash: c373194cb6d882dc455a588bcc29c92a96b50252
commit-date: 2023-05-24
host: x86_64-unknown-linux-gnu
release: 1.71.0-nightly
LLVM version: 16.0.4

Note that the version specified to rustup (+nightly-2023-05-25) is one day later than the version that rustc reports for itself (2023-05-24).

I'm trying to work with these versions in a script, and this is causing problems. Is there a different notion of version that I could use such that these would be guaranteed to match? If not, is it guaranteed that they'll always be off by exactly one day?

Found discussion of this here: https://github.com/rust-lang/rust/issues/51533

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.