about summary refs log tree commit diff
path: root/compiler/rustc_attr_parsing
diff options
context:
space:
mode:
authorJana Dönszelmann <jana@donsz.nl>2025-06-19 11:48:11 +0200
committerJana Dönszelmann <jana@donsz.nl>2025-06-20 07:50:11 +0200
commit75bcc9ca6e6d9096bad314fce2351b394ce8d2d0 (patch)
treef8eb5c62a94f9836b53f61108257f3fc4074c0b3 /compiler/rustc_attr_parsing
parent8a65ee08296b36342bf7c3cdc15312ccbc357227 (diff)
downloadrust-75bcc9ca6e6d9096bad314fce2351b394ce8d2d0.tar.gz
rust-75bcc9ca6e6d9096bad314fce2351b394ce8d2d0.zip
remove equivalent new method on context
Diffstat (limited to 'compiler/rustc_attr_parsing')
-rw-r--r--compiler/rustc_attr_parsing/src/context.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/compiler/rustc_attr_parsing/src/context.rs b/compiler/rustc_attr_parsing/src/context.rs
index d7570634c1f..feee1574363 100644
--- a/compiler/rustc_attr_parsing/src/context.rs
+++ b/compiler/rustc_attr_parsing/src/context.rs
@@ -420,19 +420,13 @@ impl<'sess> AttributeParser<'sess, Early> {
 
         parsed.pop()
     }
-
-    pub fn new_early(sess: &'sess Session, features: &'sess Features, tools: Vec<Symbol>) -> Self {
-        Self { features: Some(features), tools, parse_only: None, sess, stage: PhantomData }
-    }
 }
 
-impl<'sess> AttributeParser<'sess, Late> {
+impl<'sess, S: Stage> AttributeParser<'sess, S> {
     pub fn new(sess: &'sess Session, features: &'sess Features, tools: Vec<Symbol>) -> Self {
         Self { features: Some(features), tools, parse_only: None, sess, stage: PhantomData }
     }
-}
 
-impl<'sess, S: Stage> AttributeParser<'sess, S> {
     pub(crate) fn sess(&self) -> &'sess Session {
         &self.sess
     }