Rollup merge of #85329 - RalfJung:version, r=Mark-Simulacrum

fix version_str comment

This version string is ultimately generated here
87423fbc6a/src/bootstrap/channel.rs (L72)
and I don't think it includes the `rustc` prefix. That also matches its use here
ac923d94f8/compiler/rustc_driver/src/lib.rs (L758)
This commit is contained in:
Guillaume Gomez 2021-05-15 17:56:50 +02:00 committed by GitHub
commit 8ea8252ca5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -922,7 +922,7 @@ impl<'a> MutVisitor for ReplaceBodyWithLoop<'a, '_> {
}
}
/// Returns a version string such as "rustc 1.46.0 (04488afe3 2020-08-24)"
/// Returns a version string such as "1.46.0 (04488afe3 2020-08-24)"
pub fn version_str() -> Option<&'static str> {
option_env!("CFG_VERSION")
}