Skip to content

Commit d3d63e7

Browse files
committed
---
yaml --- r: 73290 b: refs/heads/dist-snap c: 82fa001 h: refs/heads/master v: v3
1 parent b193bec commit d3d63e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1023
-1028
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: b50030718cf28f2a5a81857a26b57442734fe854
10-
refs/heads/dist-snap: 074799b4c586c521ba678a4dc3809cad1a872dfe
10+
refs/heads/dist-snap: 82fa0018c80c8f64cb1b446a7e59492d9ad97b1d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ pub fn self_exe_path() -> Option<Path> {
509509
* Otherwise, homedir returns option::none.
510510
*/
511511
pub fn homedir() -> Option<Path> {
512-
return match getenv(~"HOME") {
512+
return match getenv("HOME") {
513513
Some(ref p) => if !str::is_empty(*p) {
514514
Some(Path(*p))
515515
} else {

branches/dist-snap/src/libcore/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ pub fn to_utf16(s: &str) -> ~[u16] {
18081808
ch -= 0x1_0000_u32;
18091809
let w1 = 0xD800_u16 | ((ch >> 10) as u16);
18101810
let w2 = 0xDC00_u16 | ((ch as u16) & 0x3FF_u16);
1811-
u.push_all(~[w1, w2])
1811+
u.push_all([w1, w2])
18121812
}
18131813
}
18141814
u

branches/dist-snap/src/libcore/unstable/extfmt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ pub mod ct {
178178
i += 1;
179179

180180
if i >= lim {
181-
err(~"unterminated conversion at end of string");
181+
err("unterminated conversion at end of string");
182182
} else if s[i] == '%' as u8 {
183183
push_slice(&mut pieces, s, h, i);
184184
i += 1;
@@ -309,7 +309,7 @@ pub mod ct {
309309

310310
pub fn parse_type(s: &str, i: uint, lim: uint, err: ErrorFn) ->
311311
Parsed<Ty> {
312-
if i >= lim { err(~"missing type in conversion"); }
312+
if i >= lim { err("missing type in conversion"); }
313313

314314
// FIXME (#2249): Do we really want two signed types here?
315315
// How important is it to be printf compatible?

branches/dist-snap/src/librustc/back/link.rs

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ pub mod write {
387387
fmt!("%s/bin/arm-linux-androideabi-gcc", path)
388388
}
389389
&None => {
390-
sess.fatal(~"need Android NDK path for building \
391-
(--android-cross-path)")
390+
sess.fatal("need Android NDK path for building \
391+
(--android-cross-path)")
392392
}
393393
};
394394
let mut cc_args = ~[];
@@ -403,7 +403,7 @@ pub mod write {
403403
sess.err(fmt!("building with `%s` failed with code %d",
404404
cc_prog, prog.status));
405405
sess.note(fmt!("%s arguments: %s",
406-
cc_prog, str::connect(cc_args, ~" ")));
406+
cc_prog, str::connect(cc_args, " ")));
407407
sess.note(prog.err + prog.out);
408408
sess.abort_if_errors();
409409
}
@@ -566,7 +566,7 @@ pub fn build_link_meta(sess: Session,
566566
|| fmt!("output file name `%s` doesn't\
567567
appear to have a stem",
568568
output.to_str())).to_managed();
569-
warn_missing(sess, ~"name", name);
569+
warn_missing(sess, "name", name);
570570
name
571571
}
572572
};
@@ -577,7 +577,7 @@ pub fn build_link_meta(sess: Session,
577577
Some(v) => v,
578578
None => {
579579
let vers = @"0.0";
580-
warn_missing(sess, ~"vers", vers);
580+
warn_missing(sess, "vers", vers);
581581
vers
582582
}
583583
};
@@ -618,9 +618,9 @@ pub fn symbol_hash(tcx: ty::ctxt,
618618

619619
symbol_hasher.reset();
620620
write_string(symbol_hasher, link_meta.name);
621-
write_string(symbol_hasher, ~"-");
621+
write_string(symbol_hasher, "-");
622622
write_string(symbol_hasher, link_meta.extras_hash);
623-
write_string(symbol_hasher, ~"-");
623+
write_string(symbol_hasher, "-");
624624
write_string(symbol_hasher, encoder::encoded_ty(tcx, t));
625625
let mut hash = truncated_hash_result(symbol_hasher);
626626
// Prefix with _ so that it never blends into adjacent digits
@@ -770,8 +770,8 @@ pub fn link_binary(sess: Session,
770770
fmt!("%s/bin/arm-linux-androideabi-gcc", path)
771771
}
772772
&None => {
773-
sess.fatal(~"need Android NDK path for linking \
774-
(--android-cross-path)")
773+
sess.fatal("need Android NDK path for linking \
774+
(--android-cross-path)")
775775
}
776776
}
777777
} else if sess.targ_cfg.os == session::os_win32 {
@@ -798,21 +798,21 @@ pub fn link_binary(sess: Session,
798798

799799
debug!("output: %s", output.to_str());
800800
let cc_args = link_args(sess, obj_filename, out_filename, lm);
801-
debug!("%s link args: %s", cc_prog, str::connect(cc_args, ~" "));
801+
debug!("%s link args: %s", cc_prog, str::connect(cc_args, " "));
802802
// We run 'cc' here
803803
let prog = run::program_output(cc_prog, cc_args);
804804
if 0 != prog.status {
805805
sess.err(fmt!("linking with `%s` failed with code %d",
806806
cc_prog, prog.status));
807807
sess.note(fmt!("%s arguments: %s",
808-
cc_prog, str::connect(cc_args, ~" ")));
808+
cc_prog, str::connect(cc_args, " ")));
809809
sess.note(prog.err + prog.out);
810810
sess.abort_if_errors();
811811
}
812812

813813
// Clean up on Darwin
814814
if sess.targ_cfg.os == session::os_macos {
815-
run::run_program(~"dsymutil", ~[output.to_str()]);
815+
run::run_program("dsymutil", [output.to_str()]);
816816
}
817817

818818
// Remove the temporary object file if we aren't saving temps
@@ -920,27 +920,26 @@ pub fn link_args(sess: Session,
920920
// On linux librt and libdl are an indirect dependencies via rustrt,
921921
// and binutils 2.22+ won't add them automatically
922922
if sess.targ_cfg.os == session::os_linux {
923-
args.push_all(~[~"-lrt", ~"-ldl"]);
923+
args.push_all([~"-lrt", ~"-ldl"]);
924924

925925
// LLVM implements the `frem` instruction as a call to `fmod`,
926926
// which lives in libm. Similar to above, on some linuxes we
927927
// have to be explicit about linking to it. See #2510
928928
args.push(~"-lm");
929929
}
930930
else if sess.targ_cfg.os == session::os_android {
931-
args.push_all(~[~"-ldl", ~"-llog", ~"-lsupc++",
932-
~"-lgnustl_shared"]);
931+
args.push_all([~"-ldl", ~"-llog", ~"-lsupc++", ~"-lgnustl_shared"]);
933932
args.push(~"-lm");
934933
}
935934

936935
if sess.targ_cfg.os == session::os_freebsd {
937-
args.push_all(~[~"-pthread", ~"-lrt",
938-
~"-L/usr/local/lib", ~"-lexecinfo",
939-
~"-L/usr/local/lib/gcc46",
940-
~"-L/usr/local/lib/gcc44", ~"-lstdc++",
941-
~"-Wl,-z,origin",
942-
~"-Wl,-rpath,/usr/local/lib/gcc46",
943-
~"-Wl,-rpath,/usr/local/lib/gcc44"]);
936+
args.push_all([~"-pthread", ~"-lrt",
937+
~"-L/usr/local/lib", ~"-lexecinfo",
938+
~"-L/usr/local/lib/gcc46",
939+
~"-L/usr/local/lib/gcc44", ~"-lstdc++",
940+
~"-Wl,-z,origin",
941+
~"-Wl,-rpath,/usr/local/lib/gcc46",
942+
~"-Wl,-rpath,/usr/local/lib/gcc44"]);
944943
}
945944

946945
// OS X 10.6 introduced 'compact unwind info', which is produced by the

branches/dist-snap/src/librustc/back/rpath.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ fn get_rpaths(os: session::os,
8686
}
8787
}
8888

89-
log_rpaths(~"relative", rel_rpaths);
90-
log_rpaths(~"absolute", abs_rpaths);
91-
log_rpaths(~"fallback", fallback_rpaths);
89+
log_rpaths("relative", rel_rpaths);
90+
log_rpaths("absolute", abs_rpaths);
91+
log_rpaths("fallback", fallback_rpaths);
9292

9393
let mut rpaths = rel_rpaths;
9494
rpaths.push_all(abs_rpaths);

0 commit comments

Comments
 (0)