Skip to content

Commit 9257fa9

Browse files
committed
---
yaml --- r: 147631 b: refs/heads/try2 c: 473d048 h: refs/heads/master i: 147629: b5fa2c0 147627: 151da98 147623: 6e875e8 147615: b09e38d v: v3
1 parent 3a4fc9d commit 9257fa9

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 992696fd2793f73c3ccc63df1d88650cfabff8c4
8+
refs/heads/try2: 473d0480954ac12bd6c73aa8dab20674ff74a21a
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/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/try2/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/try2/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/try2/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)