Rollup merge of #85329 - RalfJung:version, r=Mark-Simulacrum
fix version_str comment This version string is ultimately generated here87423fbc6a/src/bootstrap/channel.rs (L72)and I don't think it includes the `rustc` prefix. That also matches its use hereac923d94f8/compiler/rustc_driver/src/lib.rs (L758)
This commit is contained in:
commit
8ea8252ca5
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue