about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-15 17:56:50 +0200
committerGitHub <noreply@github.com>2021-05-15 17:56:50 +0200
commit8ea8252ca5e64626e11afed535d6c4bfd83fe218 (patch)
tree49b5bdc73994a01d40483f8467e3f3e92540b7fc
parent7a6a25eb2e07267f19abfcf93a0e20c2324c0b1c (diff)
parentc96d531a927d2f9fa927513a28135fc875b3d647 (diff)
downloadrust-8ea8252ca5e64626e11afed535d6c4bfd83fe218.tar.gz
rust-8ea8252ca5e64626e11afed535d6c4bfd83fe218.zip
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
-rw-r--r--compiler/rustc_interface/src/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs
index fd29053433e..7b1660b501b 100644
--- a/compiler/rustc_interface/src/util.rs
+++ b/compiler/rustc_interface/src/util.rs
@@ -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")
 }