Skip to content

Commit 1d29163

Browse files
committed
librustc: Eliminate an unnecessary @mut in pretty printing.
This removes all `@mut` from `librustc` and `libsyntax`.
1 parent 6043957 commit 1d29163

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc/driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,14 +602,14 @@ pub fn pretty_print_input(sess: Session,
602602
};
603603

604604
let src = sess.codemap.get_filemap(source_name(input)).src;
605-
let rdr = @mut MemReader::new(src.as_bytes().to_owned());
605+
let mut rdr = MemReader::new(src.as_bytes().to_owned());
606606
let stdout = io::stdout();
607607
pprust::print_crate(sess.codemap,
608608
token::get_ident_interner(),
609609
sess.span_diagnostic,
610610
&crate,
611611
source_name(input),
612-
rdr as @mut io::Reader,
612+
&mut rdr,
613613
~stdout as ~io::Writer,
614614
annotation,
615615
is_expanded);

0 commit comments

Comments
 (0)