diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-06-20 20:03:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-20 20:03:25 +0200 |
| commit | e7cc4ec8f78a43ed9d0c68731d9a1ef1ec688b0c (patch) | |
| tree | 6523283d32a8e9bc33bbe861bd2cda6a6397f7b8 /compiler/rustc_attr_parsing/src | |
| parent | 31663db8965dd30d07ee700631a6f67c12fe0e19 (diff) | |
| parent | 75bcc9ca6e6d9096bad314fce2351b394ce8d2d0 (diff) | |
| download | rust-e7cc4ec8f78a43ed9d0c68731d9a1ef1ec688b0c.tar.gz rust-e7cc4ec8f78a43ed9d0c68731d9a1ef1ec688b0c.zip | |
Rollup merge of #142769 - jdonszelmann:remove-useless-new-method, r=tgross35
remove equivalent new method on context Noticed the two had converged so much they literally became equivalent. So one could go hehe
Diffstat (limited to 'compiler/rustc_attr_parsing/src')
| -rw-r--r-- | compiler/rustc_attr_parsing/src/context.rs | 8 |
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 1708fd72e58..7925c43d62f 100644 --- a/compiler/rustc_attr_parsing/src/context.rs +++ b/compiler/rustc_attr_parsing/src/context.rs @@ -422,19 +422,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 } |
