@@ -289,7 +289,7 @@ pub(super) fn transcribe<'a>(
289
289
}
290
290
291
291
/// Turn `$(...)*` sequences into tokens.
292
- #[ inline] // called once
292
+ #[ inline( always ) ] // called once
293
293
fn transcribe_sequence < ' tx , ' itp > (
294
294
tscx : & mut TranscrCtx < ' tx , ' itp > ,
295
295
seq : & mbe:: TokenTree ,
@@ -358,7 +358,7 @@ fn transcribe_sequence<'tx, 'itp>(
358
358
/// producing "xyz", which is bad because it effectively merges tokens.
359
359
/// `Spacing::Alone` is the safer option. Fortunately, `space_between` will avoid
360
360
/// some of the unnecessary whitespace.
361
- #[ inline] // called once
361
+ #[ inline( always ) ] // called once
362
362
fn transcribe_metavar < ' tx > (
363
363
tscx : & mut TranscrCtx < ' tx , ' _ > ,
364
364
mut sp : Span ,
@@ -494,7 +494,7 @@ fn transcribe_metavar<'tx>(
494
494
}
495
495
496
496
/// Turn `${expr(...)}` metavariable expressionss into tokens.
497
- #[ inline] // called once
497
+ #[ inline( always ) ] // called once
498
498
fn transcribe_metavar_expr < ' tx > (
499
499
tscx : & mut TranscrCtx < ' tx , ' _ > ,
500
500
dspan : DelimSpan ,
@@ -540,7 +540,7 @@ fn transcribe_metavar_expr<'tx>(
540
540
}
541
541
542
542
/// Handle the `${concat(...)}` metavariable expression.
543
- #[ inline] // called once
543
+ #[ inline( always ) ] // called once
544
544
fn metavar_expr_concat < ' tx > (
545
545
tscx : & mut TranscrCtx < ' tx , ' _ > ,
546
546
dspan : DelimSpan ,
@@ -621,7 +621,7 @@ fn metavar_expr_concat<'tx>(
621
621
/// These are typically used for passing larger amounts of code, and tokens in that code usually
622
622
/// combine with each other and not with tokens outside of the sequence.
623
623
/// - The metavariable span comes from a different crate, then we prefer the more local span.
624
- #[ inline] // called once
624
+ #[ inline( always ) ] // called once
625
625
fn maybe_use_metavar_location (
626
626
psess : & ParseSess ,
627
627
stack : & [ Frame < ' _ > ] ,
@@ -813,13 +813,13 @@ fn lockstep_iter_size(
813
813
/// * `[ $( ${count(foo, 0)} ),* ]` will be the same as `[ $( ${count(foo)} ),* ]`
814
814
/// * `[ $( ${count(foo, 1)} ),* ]` will return an error because `${count(foo, 1)}` is
815
815
/// declared inside a single repetition and the index `1` implies two nested repetitions.
816
- #[ inline] // called once
816
+ #[ inline( always ) ] // called once
817
817
fn count_repetitions < ' dx > (
818
818
dcx : DiagCtxtHandle < ' dx > ,
819
819
depth_user : usize ,
820
820
mut matched : & NamedMatch ,
821
821
repeats : & [ ( usize , usize ) ] ,
822
- sp : & DelimSpan ,
822
+ sp : DelimSpan ,
823
823
) -> PResult < ' dx , usize > {
824
824
// Recursively count the number of matches in `matched` at given depth
825
825
// (or at the top-level of `matched` if no depth is given).
0 commit comments