Skip to content

Commit 5b653c1

Browse files
committed
Inline Cursor::next_with_spacing.
1 parent b09522a commit 5b653c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_ast/src/tokenstream.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,7 @@ impl Cursor {
575575
Cursor { stream, index: 0 }
576576
}
577577

578+
#[inline]
578579
pub fn next_with_spacing(&mut self) -> Option<TreeAndSpacing> {
579580
self.stream.0.get(self.index).map(|tree| {
580581
self.index += 1;

0 commit comments

Comments
 (0)