Skip to content

Commit 4f10c19

Browse files
author
Margaret Meyerhofer
committed
Merge branch 'master' of git://github.com/mozilla/rust
2 parents 507b8e5 + 8caf140 commit 4f10c19

Some content is hidden

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

87 files changed

+1840
-907
lines changed

AUTHORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Eric Holk <[email protected]>
2727
Erick Tryzelaar <[email protected]>
2828
Erik Rose <[email protected]>
2929
Evan McClanahan <[email protected]>
30+
Gareth Daniel Smith <[email protected]>
3031
Grahame Bowland <[email protected]>
3132
Graham Fawcett <[email protected]>
3233
Haitao Li <[email protected]>

src/cargo/cargo.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,7 @@ import vec;
1818
import std::getopts;
1919
import getopts::{optflag, optopt, opt_present};
2020

21-
enum _src {
22-
/* Break cycles in package <-> source */
23-
_source(source),
24-
}
25-
2621
type package = {
27-
// source: _src,
2822
name: str,
2923
uuid: str,
3024
url: str,
@@ -293,7 +287,6 @@ fn load_one_source_package(&src: source, p: map::hashmap<str, json::json>) {
293287
};
294288

295289
vec::grow(src.packages, 1u, {
296-
// source: _source(src),
297290
name: name,
298291
uuid: uuid,
299292
url: url,

src/fuzzer/fuzzer.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ fn replace_expr_in_crate(crate: ast::crate, i: uint,
188188
}
189189
}
190190
let afp =
191-
{fold_expr: fold::wrap(bind fold_expr_rep(j, i,
192-
newexpr.node, _, _, tm))
193-
with *fold::default_ast_fold()};
191+
@{fold_expr: fold::wrap(bind fold_expr_rep(j, i,
192+
newexpr.node, _, _, tm))
193+
with *fold::default_ast_fold()};
194194
let af = fold::make_fold(afp);
195195
let crate2: @ast::crate = @af.fold_crate(crate);
196196
*crate2
@@ -211,8 +211,8 @@ fn replace_ty_in_crate(crate: ast::crate, i: uint, newty: ast::ty,
211211
} else { fold::noop_fold_ty(original, fld) }
212212
}
213213
let afp =
214-
{fold_ty: fold::wrap(bind fold_ty_rep(j, i, newty.node, _, _, tm))
215-
with *fold::default_ast_fold()};
214+
@{fold_ty: fold::wrap(bind fold_ty_rep(j, i, newty.node, _, _, tm))
215+
with *fold::default_ast_fold()};
216216
let af = fold::make_fold(afp);
217217
let crate2: @ast::crate = @af.fold_crate(crate);
218218
*crate2

src/libcore/core.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import vec_iter::extensions;
1111
import option::extensions;
1212
import option_iter::extensions;
1313
import ptr::extensions;
14+
import rand::extensions;
1415

1516
export path, option, some, none, unreachable;
1617
export extensions;

src/libcore/future.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ enum future<A> = {
2828
};
2929

3030
#[doc = "Methods on the `future` type"]
31-
impl future<A:send> for future<A> {
31+
impl future<A:copy send> for future<A> {
3232

3333
fn get() -> A {
3434
#[doc = "Get the value of the future"];

src/libcore/io.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,24 @@ impl reader_util for reader {
161161
while !self.eof() { buf += self.read_bytes(2048u); }
162162
buf
163163
}
164+
165+
fn each_byte(it: fn(int) -> bool) {
166+
while !self.eof() {
167+
if !it(self.read_byte()) { break; }
168+
}
169+
}
170+
171+
fn each_char(it: fn(char) -> bool) {
172+
while !self.eof() {
173+
if !it(self.read_char()) { break; }
174+
}
175+
}
176+
177+
fn each_line(it: fn(str) -> bool) {
178+
while !self.eof() {
179+
if !it(self.read_line()) { break; }
180+
}
181+
}
164182
}
165183

166184
// Reader implementations

0 commit comments

Comments
 (0)