Skip to content

Commit 9a02018

Browse files
committed
remove unused parameters
1 parent b7820b2 commit 9a02018

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

src/libsyntax/ext/mbe/macro_rules.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,6 @@ pub fn compile_declarative_macro(
371371
tt.clone().into(),
372372
true,
373373
sess,
374-
features,
375-
&def.attrs,
376-
edition,
377-
def.id,
378374
)
379375
.pop()
380376
.unwrap();
@@ -398,10 +394,6 @@ pub fn compile_declarative_macro(
398394
tt.clone().into(),
399395
false,
400396
sess,
401-
features,
402-
&def.attrs,
403-
edition,
404-
def.id,
405397
)
406398
.pop()
407399
.unwrap();

src/libsyntax/ext/mbe/quoted.rs

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
use crate::ast;
2-
use crate::ast::NodeId;
32
use crate::ext::mbe::macro_parser;
43
use crate::ext::mbe::{TokenTree, KleeneOp, KleeneToken, SequenceRepetition, Delimited};
5-
use crate::feature_gate::Features;
64
use crate::parse::token::{self, Token};
75
use crate::parse::ParseSess;
86
use crate::print::pprust;
97
use crate::symbol::kw;
108
use crate::tokenstream;
119

12-
use syntax_pos::{edition::Edition, Span};
10+
use syntax_pos::Span;
1311

1412
use rustc_data_structures::sync::Lrc;
1513
use std::iter::Peekable;
@@ -39,10 +37,6 @@ pub(super) fn parse(
3937
input: tokenstream::TokenStream,
4038
expect_matchers: bool,
4139
sess: &ParseSess,
42-
features: &Features,
43-
attrs: &[ast::Attribute],
44-
edition: Edition,
45-
macro_node_id: NodeId,
4640
) -> Vec<TokenTree> {
4741
// Will contain the final collection of `self::TokenTree`
4842
let mut result = Vec::new();
@@ -58,10 +52,6 @@ pub(super) fn parse(
5852
&mut trees,
5953
expect_matchers,
6054
sess,
61-
features,
62-
attrs,
63-
edition,
64-
macro_node_id,
6555
);
6656
match tree {
6757
TokenTree::MetaVar(start_sp, ident) if expect_matchers => {
@@ -112,10 +102,6 @@ fn parse_tree(
112102
trees: &mut Peekable<impl Iterator<Item = tokenstream::TokenTree>>,
113103
expect_matchers: bool,
114104
sess: &ParseSess,
115-
features: &Features,
116-
attrs: &[ast::Attribute],
117-
edition: Edition,
118-
macro_node_id: NodeId,
119105
) -> TokenTree {
120106
// Depending on what `tree` is, we could be parsing different parts of a macro
121107
match tree {
@@ -135,10 +121,6 @@ fn parse_tree(
135121
tts.into(),
136122
expect_matchers,
137123
sess,
138-
features,
139-
attrs,
140-
edition,
141-
macro_node_id,
142124
);
143125
// Get the Kleene operator and optional separator
144126
let (separator, kleene) = parse_sep_and_kleene_op(trees, span.entire(), sess);
@@ -192,10 +174,6 @@ fn parse_tree(
192174
tts.into(),
193175
expect_matchers,
194176
sess,
195-
features,
196-
attrs,
197-
edition,
198-
macro_node_id,
199177
),
200178
}),
201179
),

0 commit comments

Comments
 (0)