From 52919c7f81dc868b7b6bfdc47ec7417d2fda2795 Mon Sep 17 00:00:00 2001 From: cyrgani Date: Wed, 11 Feb 2026 21:39:22 +0000 Subject: [PATCH] allow `deprecated(since = "CURRENT_RUSTC_VERSION")` --- compiler/rustc_attr_parsing/src/attributes/deprecation.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_attr_parsing/src/attributes/deprecation.rs b/compiler/rustc_attr_parsing/src/attributes/deprecation.rs index e01377d247bb..c055c2936e95 100644 --- a/compiler/rustc_attr_parsing/src/attributes/deprecation.rs +++ b/compiler/rustc_attr_parsing/src/attributes/deprecation.rs @@ -1,4 +1,5 @@ use rustc_hir::attrs::{DeprecatedSince, Deprecation}; +use rustc_hir::{RustcVersion, VERSION_PLACEHOLDER}; use super::prelude::*; use super::util::parse_version; @@ -143,6 +144,8 @@ fn convert(cx: &mut AcceptContext<'_, '_, S>, args: &ArgParser) -> Option