From ac4fa3f2456c0f131982c871d2dffcb7b33daf92 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 25 Oct 2023 14:05:42 -0700 Subject: Pre-intern a symbol for env!("CFG_RELEASE") --- compiler/rustc_attr/src/builtin.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'compiler/rustc_attr/src') diff --git a/compiler/rustc_attr/src/builtin.rs b/compiler/rustc_attr/src/builtin.rs index bd85483885e..363ba0d4a81 100644 --- a/compiler/rustc_attr/src/builtin.rs +++ b/compiler/rustc_attr/src/builtin.rs @@ -26,10 +26,6 @@ pub const VERSION_PLACEHOLDER: &str = "CURRENT_RUSTC_VERSION"; pub const CURRENT_RUSTC_VERSION: &str = env!("CFG_RELEASE"); -pub fn rust_version_symbol() -> Symbol { - Symbol::intern(CURRENT_RUSTC_VERSION) -} - pub fn is_builtin_attr(attr: &Attribute) -> bool { attr.is_doc_comment() || attr.ident().is_some_and(|ident| is_builtin_attr_name(ident.name)) } -- cgit 1.4.1-3-g733a5