Greatly simplify lifetime captures in edition 2024
This commit is contained in:
parent
46420c9607
commit
12e3911d81
84 changed files with 223 additions and 294 deletions
|
@ -329,7 +329,7 @@ impl ParseSess {
|
|||
self.proc_macro_quoted_spans.push(span)
|
||||
}
|
||||
|
||||
pub fn proc_macro_quoted_spans(&self) -> impl Iterator<Item = (usize, Span)> + '_ {
|
||||
pub fn proc_macro_quoted_spans(&self) -> impl Iterator<Item = (usize, Span)> {
|
||||
// This is equivalent to `.iter().copied().enumerate()`, but that isn't possible for
|
||||
// AppendOnlyVec, so we resort to this scheme.
|
||||
self.proc_macro_quoted_spans.iter_enumerated()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue