Skip to content

Commit 7724986

Browse files
committed
---
yaml --- r: 13448 b: refs/heads/master c: 920ea63 h: refs/heads/master v: v3
1 parent c99f827 commit 7724986

File tree

4 files changed

+22
-26
lines changed

4 files changed

+22
-26
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 78daa1540c62d9264816b344b429e6a63db7971a
2+
refs/heads/master: 920ea63f53bbbe46cdcbaead12720871b5fb00b9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/cargo/cargo.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ fn load_source_info(c: cargo, src: source) {
557557
if !os::path_exists(srcfile) { ret; }
558558
let srcstr = io::read_whole_file_str(srcfile);
559559
alt json::from_str(result::get(srcstr)) {
560-
ok(json::dict(s)) {
561-
let o = parse_source(src.name, json::dict(s));
560+
ok(json::dict(_s)) {
561+
let o = parse_source(src.name, json::dict(_s));
562562

563563
src.key = o.key;
564564
src.keyfp = o.keyfp;
@@ -635,7 +635,7 @@ fn build_cargo_options(argv: [str]) -> options {
635635

636636
fn configure(opts: options) -> cargo {
637637
let home = alt get_cargo_root() {
638-
ok(home) { home }
638+
ok(_home) { _home }
639639
err(_err) { result::get(get_cargo_sysroot()) }
640640
};
641641

@@ -647,11 +647,11 @@ fn configure(opts: options) -> cargo {
647647

648648
let p = result::get(get_cargo_dir());
649649

650-
let sources = map::str_hash();
650+
let sources = map::str_hash::<source>();
651651
try_parse_sources(path::connect(home, "sources.json"), sources);
652652
try_parse_sources(path::connect(home, "local-sources.json"), sources);
653653

654-
let dep_cache = map::str_hash();
654+
let dep_cache = map::str_hash::<bool>();
655655

656656
let mut c = {
657657
pgp: pgp::supported(),
@@ -668,9 +668,9 @@ fn configure(opts: options) -> cargo {
668668
};
669669

670670
need_dir(c.root);
671-
need_dir(c.installdir);
672671
need_dir(c.sourcedir);
673672
need_dir(c.workdir);
673+
need_dir(c.installdir);
674674
need_dir(c.libdir);
675675
need_dir(c.bindir);
676676

@@ -799,7 +799,7 @@ fn install_source(c: cargo, path: str) {
799799

800800
let wd_base = c.workdir + path::path_sep();
801801
let wd = alt tempfile::mkdtemp(wd_base, "") {
802-
some(wd) { wd }
802+
some(_wd) { _wd }
803803
none { fail #fmt("needed temp dir: %s", wd_base); }
804804
};
805805

@@ -819,8 +819,8 @@ fn install_source(c: cargo, path: str) {
819819

820820
fn install_git(c: cargo, wd: str, url: str, ref: option<str>) {
821821
run::program_output("git", ["clone", url, wd]);
822-
if option::is_some(ref) {
823-
let r = option::get(ref);
822+
if option::is_some::<str>(ref) {
823+
let r = option::get::<str>(ref);
824824
os::change_dir(wd);
825825
run::run_program("git", ["checkout", r]);
826826
}
@@ -1021,8 +1021,8 @@ fn cmd_uninstall(c: cargo) {
10211021

10221022
fn install_query(c: cargo, wd: str, target: str) {
10231023
alt c.dep_cache.find(target) {
1024-
some(inst) {
1025-
if inst {
1024+
some(_inst) {
1025+
if _inst {
10261026
ret;
10271027
}
10281028
}
@@ -1082,7 +1082,7 @@ fn install_query(c: cargo, wd: str, target: str) {
10821082
fn cmd_install(c: cargo) unsafe {
10831083
let wd_base = c.workdir + path::path_sep();
10841084
let wd = alt tempfile::mkdtemp(wd_base, "") {
1085-
some(wd) { wd }
1085+
some(_wd) { _wd }
10861086
none { fail #fmt("needed temp dir: %s", wd_base); }
10871087
};
10881088

@@ -1536,7 +1536,7 @@ fn cmd_search(c: cargo) {
15361536
fn install_to_dir(srcfile: str, destdir: str) {
15371537
let newfile = path::connect(destdir, path::basename(srcfile));
15381538

1539-
let status = run::run_program("cp", ["-r", srcfile, newfile]);
1539+
let status = run::run_program("cp", [srcfile, newfile]);
15401540
if status == 0 {
15411541
info(#fmt["installed: '%s'", newfile]);
15421542
} else {

trunk/src/libstd/json.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -510,14 +510,6 @@ impl of to_json for json {
510510
fn to_json() -> json { self }
511511
}
512512

513-
impl of to_json for @json {
514-
fn to_json() -> json { *self }
515-
}
516-
517-
impl of to_json for int {
518-
fn to_json() -> json { num(self as float) }
519-
}
520-
521513
impl of to_json for i8 {
522514
fn to_json() -> json { num(self as float) }
523515
}
@@ -534,10 +526,6 @@ impl of to_json for i64 {
534526
fn to_json() -> json { num(self as float) }
535527
}
536528

537-
impl of to_json for uint {
538-
fn to_json() -> json { num(self as float) }
539-
}
540-
541529
impl of to_json for u8 {
542530
fn to_json() -> json { num(self as float) }
543531
}

trunk/src/snapshots.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2012-06-12 11e30b2
2+
macos-x86_64 b6e031112f4619dcd5aa708cf9ea9871a7b11595
3+
macos-i386 497875c1fb6289c704485b8bf2e3c40c7918bf4e
4+
freebsd-x86_64 8b7efe161706066f3711fcb28a0edc969870851d
5+
linux-x86_64 b12a342144309e0053a7654ce95b19666a0a3521
6+
linux-i386 75e0916903362fcfd3a306d53d932c7ad3f43f28
7+
winnt-i386 470d7ededd8e5dc9ded9317d5cfbc8794fe9c594
8+
19
S 2012-06-07 3cbd1e2
210
macos-x86_64 e899c985a4c7b73e3d597b7139bae9a68f0be3ed
311
macos-i386 f002bd36e38dbd6455887da915b449fc22fa3df7

0 commit comments

Comments
 (0)