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.
1 parent a23b8ca commit 564f2eeCopy full SHA for 564f2ee
src/librustc_metadata/schema.rs
@@ -26,8 +26,12 @@ use syntax_pos::{self, Span};
26
27
use std::marker::PhantomData;
28
29
+#[cfg(not(test))]
30
pub const RUSTC_VERSION: &'static str = concat!("rustc ", env!("CFG_VERSION"));
31
32
+#[cfg(test)]
33
+pub const RUSTC_VERSION: &'static str = "rustc 0.0.0-unit-test";
34
+
35
/// Metadata encoding version.
36
/// NB: increment this if you change the format of metadata such that
37
/// the rustc version can't be found to compare with `RUSTC_VERSION`.
0 commit comments