Skip to content

Commit 4e1f4b7

Browse files
committed
---
yaml --- r: 13326 b: refs/heads/master c: 3685d53 h: refs/heads/master v: v3
1 parent d2ea0f7 commit 4e1f4b7

Some content is hidden

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

78 files changed

+582
-749
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: 0327dc0b188ee536eb6865cf202f03c88864f4fb
2+
refs/heads/master: 3685d53a61355e141e65dbd4075180eade3ace2c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/Makefile.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,9 @@ else
421421
TSREQS := \
422422
$(foreach target,$(CFG_TARGET_TRIPLES), \
423423
$(SREQ3_T_$(target)_H_$(CFG_HOST_TRIPLE)))
424-
FUZZ := $(HBIN2_H_$(CFG_HOST_TRIPLE))/fuzzer$(X)
425-
CARGO := $(HBIN2_H_$(CFG_HOST_TRIPLE))/cargo$(X)
426-
RUSTDOC := $(HBIN2_H_$(CFG_HOST_TRIPLE))/rustdoc$(X)
424+
FUZZ := $(HBIN3_H_$(CFG_HOST_TRIPLE))/fuzzer$(X)
425+
CARGO := $(HBIN3_H_$(CFG_HOST_TRIPLE))/cargo$(X)
426+
RUSTDOC := $(HBIN3_H_$(CFG_HOST_TRIPLE))/rustdoc$(X)
427427

428428
all: rustc $(GENERATED) docs $(FUZZ) $(CARGO) $(RUSTDOC)
429429

trunk/src/cargo/cargo.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ fn try_parse_sources(filename: str, sources: map::hashmap<str, source>) {
332332
}
333333
}
334334

335-
fn load_one_source_package(&&src: source, p: map::hashmap<str, json::json>) {
335+
fn load_one_source_package(&src: source, p: map::hashmap<str, json::json>) {
336336
let name = alt p.find("name") {
337337
some(json::string(_n)) { _n }
338338
_ {
@@ -404,8 +404,8 @@ fn load_one_source_package(&&src: source, p: map::hashmap<str, json::json>) {
404404
log(debug, " loaded package: " + src.name + "/" + name);
405405
}
406406

407-
fn load_source_packages(&&c: cargo, &&src: source) {
408-
log(debug, "Loading source: " + src.name);
407+
fn load_source_packages(&c: cargo, &src: source) {
408+
log(debug, "loading source: " + src.name);
409409
let dir = path::connect(c.sourcedir, src.name);
410410
let pkgfile = path::connect(dir, "packages.json");
411411
if !os::path_exists(pkgfile) { ret; }

trunk/src/libcore/cmp.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

trunk/src/libcore/core.rc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export extfmt;
4444
export tuple;
4545
export to_str;
4646
export dvec, dvec_iter;
47-
export cmp;
4847

4948
// NDM seems to be necessary for resolve to work
5049
export option_iter;
@@ -153,7 +152,6 @@ mod tuple;
153152

154153
// Ubiquitous-utility-type modules
155154

156-
mod cmp;
157155
mod either;
158156
mod iter;
159157
mod logging;

trunk/src/libcore/dvec.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ fn dvec<A>() -> dvec<A> {
5757
{mut data: [mut]}
5858
}
5959

60-
#[doc = "Creates a new dvec with a single element"]
61-
fn from_elt<A>(+e: A) -> dvec<A> {
62-
{mut data: [mut e]}
63-
}
64-
6560
#[doc = "Creates a new dvec with the contents of a vector"]
6661
fn from_vec<A>(+v: [mut A]) -> dvec<A> {
6762
{mut data: v}
@@ -239,19 +234,12 @@ impl extensions<A:copy> for dvec<A> {
239234
self.data[idx] = a;
240235
}
241236

242-
#[doc = "Overwrites the contents of the element at `idx` with `a`,
243-
growing the vector if necessary. New elements will be initialized
244-
with `initval`"]
237+
#[doc = "Overwrites the contents of the element at `idx` with `a`"]
245238
fn grow_set_elt(idx: uint, initval: A, val: A) {
246239
self.swap { |v|
247240
let mut v <- v;
248241
vec::grow_set(v, idx, initval, val);
249242
v
250243
}
251244
}
252-
253-
#[doc = "Returns the last element, failing if the vector is empty"]
254-
fn last() -> A {
255-
self.get_elt(self.len() - 1u)
256-
}
257245
}

trunk/src/libcore/future.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fn get<A:copy>(future: future<A>) -> A {
108108
fn with<A,B>(future: future<A>, blk: fn(A) -> B) -> B {
109109
#[doc = "Work with the value without copying it"];
110110

111-
let v = alt copy future.v {
111+
let v = alt future.v {
112112
either::left(v) { v }
113113
either::right(f) {
114114
let v = @f();

trunk/src/libcore/int-template.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import T = inst::T;
2-
import cmp::{eq, ord};
32

43
export min_value, max_value;
54
export min, max;
@@ -11,7 +10,6 @@ export range;
1110
export compl;
1211
export abs;
1312
export parse_buf, from_str, to_str, to_str_bytes, str;
14-
export ord, eq;
1513

1614
const min_value: T = -1 as T << (inst::bits - 1 as T);
1715
const max_value: T = min_value - 1 as T;
@@ -110,18 +108,6 @@ fn to_str_bytes<U>(n: T, radix: uint, f: fn([u8]/&) -> U) -> U {
110108
#[doc = "Convert to a string"]
111109
fn str(i: T) -> str { ret to_str(i, 10u); }
112110

113-
impl ord of ord for T {
114-
fn lt(&&other: T) -> bool {
115-
ret self < other;
116-
}
117-
}
118-
119-
impl eq of eq for T {
120-
fn eq(&&other: T) -> bool {
121-
ret self == other;
122-
}
123-
}
124-
125111

126112
// FIXME: Has alignment issues on windows and 32-bit linux
127113
#[test]

trunk/src/libcore/io.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ impl of writer for mem_buffer {
613613
// FIXME #2004--use memcpy here?
614614
let mut pos = self.pos, vpos = 0u;
615615
while vpos < vlen && pos < buf_len {
616-
self.buf.set_elt(pos, copy v[vpos]);
616+
self.buf.set_elt(pos, v[vpos]);
617617
pos += 1u;
618618
vpos += 1u;
619619
}

trunk/src/libcore/rand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl extensions for rng {
218218
}
219219

220220
#[doc = "Shuffle a mutable vec in place"]
221-
fn shuffle_mut<T>(&&values: [mut T]) {
221+
fn shuffle_mut<T>(&values: [mut T]) {
222222
let mut i = values.len();
223223
while i >= 2u {
224224
// invariant: elements with index >= i have been locked in place.

0 commit comments

Comments
 (0)