Skip to content

Commit f20bbc1

Browse files
Rollup merge of #97536 - est31:remove_unused_lifetimes, r=compiler-errors
Remove unused lifetimes from expand_macro The function doesn't need the lifetimes of the two arguments be bound together.
2 parents 8e01595 + 311aacf commit f20bbc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_expand/src/mbe/macro_rules.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -204,16 +204,16 @@ fn trace_macros_note(cx_expansions: &mut FxHashMap<Span, Vec<String>>, sp: Span,
204204

205205
/// Expands the rules based macro defined by `lhses` and `rhses` for a given
206206
/// input `arg`.
207-
fn expand_macro<'cx, 'tt>(
207+
fn expand_macro<'cx>(
208208
cx: &'cx mut ExtCtxt<'_>,
209209
sp: Span,
210210
def_span: Span,
211211
node_id: NodeId,
212212
name: Ident,
213213
transparency: Transparency,
214214
arg: TokenStream,
215-
lhses: &'tt [Vec<MatcherLoc>],
216-
rhses: &'tt [mbe::TokenTree],
215+
lhses: &[Vec<MatcherLoc>],
216+
rhses: &[mbe::TokenTree],
217217
) -> Box<dyn MacResult + 'cx> {
218218
let sess = &cx.sess.parse_sess;
219219
// Macros defined in the current crate have a real node id,

0 commit comments

Comments
 (0)