Skip to content

Commit 1271b35

Browse files
committed
---
yaml --- r: 89015 b: refs/heads/snap-stage3 c: 473d048 h: refs/heads/master i: 89013: c450964 89011: 999947b 89007: 49408e0 v: v3
1 parent c7522e6 commit 1271b35

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: deeca5d586bfaa4aa60246f671a8d611d38f6248
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 992696fd2793f73c3ccc63df1d88650cfabff8c4
4+
refs/heads/snap-stage3: 473d0480954ac12bd6c73aa8dab20674ff74a21a
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/driver/driver.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,13 +569,14 @@ pub fn pretty_print_input(sess: Session,
569569

570570
let src = sess.codemap.get_filemap(source_name(input)).src;
571571
let rdr = @mut MemReader::new(src.as_bytes().to_owned());
572+
let stdout = io::stdout();
572573
pprust::print_crate(sess.codemap,
573574
token::get_ident_interner(),
574575
sess.span_diagnostic,
575576
&crate,
576577
source_name(input),
577578
rdr as @mut io::Reader,
578-
@mut io::stdout() as @mut io::Writer,
579+
@mut stdout as @mut io::Writer,
579580
annotation,
580581
is_expanded);
581582
}
@@ -1080,7 +1081,7 @@ pub fn early_error(emitter: @diagnostic::Emitter, msg: &str) -> ! {
10801081
fail!();
10811082
}
10821083

1083-
pub fn list_metadata(sess: Session, path: &Path, out: @mut io::Writer) {
1084+
pub fn list_metadata(sess: Session, path: &Path, out: &mut io::Writer) {
10841085
metadata::loader::list_file_metadata(
10851086
token::get_ident_interner(),
10861087
session::sess_os_to_meta_os(sess.targ_cfg.os), path, out);

branches/snap-stage3/src/librustc/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,9 @@ pub fn run_compiler(args: &[~str], demitter: @diagnostic::Emitter) {
275275
if ls {
276276
match input {
277277
d::file_input(ref ifile) => {
278+
let mut stdout = io::stdout();
278279
d::list_metadata(sess, &(*ifile),
279-
@mut io::stdout() as @mut io::Writer);
280+
&mut stdout as &mut io::Writer);
280281
}
281282
d::str_input(_) => {
282283
d::early_error(demitter, "can not list metadata for stdin");

branches/snap-stage3/src/librustc/metadata/decoder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ fn get_attributes(md: ebml::Doc) -> ~[ast::Attribute] {
11101110
}
11111111

11121112
fn list_crate_attributes(intr: @ident_interner, md: ebml::Doc, hash: &str,
1113-
out: @mut io::Writer) {
1113+
out: &mut io::Writer) {
11141114
write!(out, "=Crate Attributes ({})=\n", hash);
11151115

11161116
let r = get_attributes(md);
@@ -1153,7 +1153,7 @@ pub fn get_crate_deps(data: &[u8]) -> ~[CrateDep] {
11531153
return deps;
11541154
}
11551155

1156-
fn list_crate_deps(data: &[u8], out: @mut io::Writer) {
1156+
fn list_crate_deps(data: &[u8], out: &mut io::Writer) {
11571157
write!(out, "=External Dependencies=\n");
11581158

11591159
let r = get_crate_deps(data);
@@ -1180,7 +1180,7 @@ pub fn get_crate_vers(data: &[u8]) -> @str {
11801180
}
11811181

11821182
pub fn list_crate_metadata(intr: @ident_interner, bytes: &[u8],
1183-
out: @mut io::Writer) {
1183+
out: &mut io::Writer) {
11841184
let hash = get_crate_hash(bytes);
11851185
let md = reader::Doc(bytes);
11861186
list_crate_attributes(intr, md, hash, out);

branches/snap-stage3/src/librustc/metadata/loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ pub fn read_meta_section_name(os: Os) -> &'static str {
380380
pub fn list_file_metadata(intr: @ident_interner,
381381
os: Os,
382382
path: &Path,
383-
out: @mut io::Writer) {
383+
out: &mut io::Writer) {
384384
match get_metadata_section(os, path) {
385385
option::Some(bytes) => decoder::list_crate_metadata(intr,
386386
bytes.as_slice(),

0 commit comments

Comments
 (0)