We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bdf08f commit 63406acCopy full SHA for 63406ac
compiler/rustc_ast_pretty/src/pp.rs
@@ -314,6 +314,12 @@ impl Printer {
314
}
315
316
317
+ pub fn offset(&mut self, offset: isize) {
318
+ if let Some(BufEntry { token: Token::Break(token), .. }) = &mut self.buf.last_mut() {
319
+ token.offset += offset;
320
+ }
321
322
+
323
fn check_stream(&mut self) {
324
while self.right_total - self.left_total > self.space {
325
if *self.scan_stack.front().unwrap() == self.buf.index_of_first() {
0 commit comments