diff options
| author | est31 <MTest31@outlook.com> | 2022-08-30 23:05:51 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-09-02 01:47:01 +0200 |
| commit | 0c4ec5df58201a9215248d6cf68865431b4d3e35 (patch) | |
| tree | 17e4f69755739c15552f9acf575f7657d674aa64 /compiler/rustc_passes/src | |
| parent | 0631ea5d73f4a3199c776687b12c20c50a91f0d2 (diff) | |
| download | rust-0c4ec5df58201a9215248d6cf68865431b4d3e35.tar.gz rust-0c4ec5df58201a9215248d6cf68865431b4d3e35.zip | |
Also replace the version placeholder in rustc_attr
This fixes rustdoc not showing the current version as stabilization version for recently stabilized lang features.
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/lib_features.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/lib_features.rs b/compiler/rustc_passes/src/lib_features.rs index 70b6bfd1e58..5aac6943eef 100644 --- a/compiler/rustc_passes/src/lib_features.rs +++ b/compiler/rustc_passes/src/lib_features.rs @@ -5,6 +5,7 @@ //! collect them instead. use rustc_ast::{Attribute, MetaItemKind}; +use rustc_attr::VERSION_PLACEHOLDER; use rustc_errors::struct_span_err; use rustc_hir::intravisit::Visitor; use rustc_middle::hir::nested_filter; @@ -54,7 +55,6 @@ impl<'tcx> LibFeatureCollector<'tcx> { } } } - const VERSION_PLACEHOLDER: &str = "CURRENT_RUSTC_VERSION"; if let Some(s) = since && s.as_str() == VERSION_PLACEHOLDER { let version = option_env!("CFG_VERSION").unwrap_or("<current>"); |
