We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$RUSTC
rustc
1 parent e2270bb commit d5b10f0Copy full SHA for d5b10f0
rustc_tools_util/src/lib.rs
@@ -157,7 +157,8 @@ pub fn get_commit_date() -> Option<String> {
157
158
#[must_use]
159
pub fn get_compiler_version() -> Option<String> {
160
- get_output("rustc", &["-V"])
+ let compiler = std::option_env!("RUSTC").unwrap_or("rustc");
161
+ get_output(compiler, &["-V"])
162
}
163
164
@@ -172,6 +173,8 @@ pub fn get_channel(compiler_version: Option<String>) -> String {
172
173
return String::from("beta");
174
} else if rustc_output.contains("nightly") {
175
return String::from("nightly");
176
+ } else if rustc_output.contains("dev") {
177
+ return String::from("dev");
178
179
180
0 commit comments