Skip to content

Commit 8ea8252

Browse files
Rollup merge of #85329 - RalfJung:version, r=Mark-Simulacrum
fix version_str comment This version string is ultimately generated here https://github.com/rust-lang/rust/blob/87423fbc6af5aae2b5f6d0a11f2a0c60c7c22e98/src/bootstrap/channel.rs#L72 and I don't think it includes the `rustc` prefix. That also matches its use here https://github.com/rust-lang/rust/blob/ac923d94f86a6f7c881ecbedcd0a68d7986a35bd/compiler/rustc_driver/src/lib.rs#L758
2 parents 7a6a25e + c96d531 commit 8ea8252

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_interface/src

1 file changed

+1
-1
lines changed

compiler/rustc_interface/src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ impl<'a> MutVisitor for ReplaceBodyWithLoop<'a, '_> {
922922
}
923923
}
924924

925-
/// Returns a version string such as "rustc 1.46.0 (04488afe3 2020-08-24)"
925+
/// Returns a version string such as "1.46.0 (04488afe3 2020-08-24)"
926926
pub fn version_str() -> Option<&'static str> {
927927
option_env!("CFG_VERSION")
928928
}

0 commit comments

Comments
 (0)