mirror of https://github.com/rust-lang/rust.git
parent
9832374f6e
commit
13f0f49a4e
|
@ -390,7 +390,7 @@ impl Printer {
|
|||
self.scan_stack.pop_front().unwrap()
|
||||
}
|
||||
|
||||
fn scan_top(&mut self) -> usize {
|
||||
fn scan_top(&self) -> usize {
|
||||
*self.scan_stack.front().unwrap()
|
||||
}
|
||||
|
||||
|
@ -484,7 +484,7 @@ impl Printer {
|
|||
self.pending_indentation += amount;
|
||||
}
|
||||
|
||||
fn get_top(&mut self) -> PrintStackElem {
|
||||
fn get_top(&self) -> PrintStackElem {
|
||||
*self.print_stack.last().unwrap_or({
|
||||
&PrintStackElem { offset: 0, pbreak: PrintStackBreak::Broken(Breaks::Inconsistent) }
|
||||
})
|
||||
|
|
|
@ -63,7 +63,7 @@ impl<'a> Comments<'a> {
|
|||
}
|
||||
|
||||
pub fn trailing_comment(
|
||||
&mut self,
|
||||
&self,
|
||||
span: rustc_span::Span,
|
||||
next_pos: Option<BytePos>,
|
||||
) -> Option<Comment> {
|
||||
|
|
Loading…
Reference in New Issue