Remove unused lifetimes from expand_macro
The function doesn't need the lifetimes of the two arguments be bound together.
This commit is contained in:
parent
68314177e7
commit
311aacf0d0
1 changed files with 3 additions and 3 deletions
|
@ -204,7 +204,7 @@ fn trace_macros_note(cx_expansions: &mut FxHashMap<Span, Vec<String>>, sp: Span,
|
||||||
|
|
||||||
/// Expands the rules based macro defined by `lhses` and `rhses` for a given
|
/// Expands the rules based macro defined by `lhses` and `rhses` for a given
|
||||||
/// input `arg`.
|
/// input `arg`.
|
||||||
fn expand_macro<'cx, 'tt>(
|
fn expand_macro<'cx>(
|
||||||
cx: &'cx mut ExtCtxt<'_>,
|
cx: &'cx mut ExtCtxt<'_>,
|
||||||
sp: Span,
|
sp: Span,
|
||||||
def_span: Span,
|
def_span: Span,
|
||||||
|
@ -212,8 +212,8 @@ fn expand_macro<'cx, 'tt>(
|
||||||
name: Ident,
|
name: Ident,
|
||||||
transparency: Transparency,
|
transparency: Transparency,
|
||||||
arg: TokenStream,
|
arg: TokenStream,
|
||||||
lhses: &'tt [Vec<MatcherLoc>],
|
lhses: &[Vec<MatcherLoc>],
|
||||||
rhses: &'tt [mbe::TokenTree],
|
rhses: &[mbe::TokenTree],
|
||||||
) -> Box<dyn MacResult + 'cx> {
|
) -> Box<dyn MacResult + 'cx> {
|
||||||
let sess = &cx.sess.parse_sess;
|
let sess = &cx.sess.parse_sess;
|
||||||
// Macros defined in the current crate have a real node id,
|
// Macros defined in the current crate have a real node id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue