librustc: Eliminate an unnecessary @mut
in pretty printing.
This removes all `@mut` from `librustc` and `libsyntax`.
This commit is contained in:
parent
6043957d8d
commit
1d29163e9c
@ -602,14 +602,14 @@ pub fn pretty_print_input(sess: Session,
|
||||
};
|
||||
|
||||
let src = sess.codemap.get_filemap(source_name(input)).src;
|
||||
let rdr = @mut MemReader::new(src.as_bytes().to_owned());
|
||||
let mut rdr = MemReader::new(src.as_bytes().to_owned());
|
||||
let stdout = io::stdout();
|
||||
pprust::print_crate(sess.codemap,
|
||||
token::get_ident_interner(),
|
||||
sess.span_diagnostic,
|
||||
&crate,
|
||||
source_name(input),
|
||||
rdr as @mut io::Reader,
|
||||
&mut rdr,
|
||||
~stdout as ~io::Writer,
|
||||
annotation,
|
||||
is_expanded);
|
||||
|
Loading…
Reference in New Issue
Block a user