File tree 2 files changed +3
-3
lines changed
compiler/rustc_ast_pretty/src
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ impl Printer {
390
390
self . scan_stack . pop_front ( ) . unwrap ( )
391
391
}
392
392
393
- fn scan_top ( & mut self ) -> usize {
393
+ fn scan_top ( & self ) -> usize {
394
394
* self . scan_stack . front ( ) . unwrap ( )
395
395
}
396
396
@@ -484,7 +484,7 @@ impl Printer {
484
484
self . pending_indentation += amount;
485
485
}
486
486
487
- fn get_top ( & mut self ) -> PrintStackElem {
487
+ fn get_top ( & self ) -> PrintStackElem {
488
488
* self . print_stack . last ( ) . unwrap_or ( {
489
489
& PrintStackElem { offset : 0 , pbreak : PrintStackBreak :: Broken ( Breaks :: Inconsistent ) }
490
490
} )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ impl<'a> Comments<'a> {
63
63
}
64
64
65
65
pub fn trailing_comment (
66
- & mut self ,
66
+ & self ,
67
67
span : rustc_span:: Span ,
68
68
next_pos : Option < BytePos > ,
69
69
) -> Option < Comment > {
You can’t perform that action at this time.
0 commit comments