Skip to content

Commit 4f5b443

Browse files
committed
Register new snapshots
1 parent e4779b5 commit 4f5b443

Some content is hidden

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

74 files changed

+194
-208
lines changed

src/doc/complement-cheatsheet.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct Foo {
152152
}
153153
154154
struct FooClosure<'a> {
155-
myfunc: 'a |int, uint| -> i32
155+
myfunc: |int, uint|: 'a -> i32
156156
}
157157
158158
fn a(a: int, b: uint) -> i32 {

src/doc/rust.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3415,7 +3415,7 @@ fn add(x: int, y: int) -> int {
34153415
34163416
let mut x = add(5,7);
34173417
3418-
type Binop<'a> = 'a |int,int| -> int;
3418+
type Binop<'a> = |int,int|: 'a -> int;
34193419
let bo: Binop = add;
34203420
x = bo(5,7);
34213421
~~~~

src/libcollections/deque.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub mod bench {
9696
map.insert(*k, 1);
9797
}
9898

99-
rng.shuffle_mut(keys);
99+
rng.shuffle(keys);
100100

101101
// measure
102102
let mut i = 0;

src/libgreen/basic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn event_loop() -> ~EventLoop:Send {
2727
}
2828

2929
struct BasicLoop {
30-
work: ~[proc:Send()], // pending work
30+
work: ~[proc():Send], // pending work
3131
idle: Option<*mut BasicPausable>, // only one is allowed
3232
remotes: ~[(uint, ~Callback:Send)],
3333
next_remote: uint,
@@ -135,7 +135,7 @@ impl EventLoop for BasicLoop {
135135
}
136136
}
137137

138-
fn callback(&mut self, f: proc:Send()) {
138+
fn callback(&mut self, f: proc():Send) {
139139
self.work.push(f);
140140
}
141141

src/liblibc/lib.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
#![feature(globs)]
12-
#![crate_id = "libc#0.10-pre"]
12+
#![crate_id = "libc#0.11-pre"]
1313
#![experimental]
1414
#![no_std] // we don't need std, and we can't have std, since it doesn't exist
1515
// yet. std depends on us.
@@ -75,8 +75,6 @@
7575
#![allow(missing_doc)]
7676
#![allow(uppercase_variables)]
7777

78-
#![feature(link_args)] // NOTE: remove after stage0
79-
8078
#[cfg(test)] extern crate std;
8179
#[cfg(test)] extern crate test;
8280
#[cfg(test)] extern crate native;
@@ -199,11 +197,6 @@ pub use funcs::posix88::unistd::{rmdir, unlink, write};
199197
#[link(name = "m")]
200198
extern {}
201199

202-
// NOTE: remove this after a stage0 snap
203-
#[cfg(stage0, windows)]
204-
#[link_args = "-Wl,--enable-long-section-names"]
205-
extern {}
206-
207200
/// A wrapper for a nullable pointer. Don't use this except for interacting
208201
/// with libc. Basically Option, but without the dependance on libstd.
209202
// If/when libprim happens, this can be removed in favor of that

src/libnative/io/p

Whitespace-only changes.

src/libnative/io/process.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ fn spawn_process_os(config: p::ProcessConfig,
580580
}
581581

582582
#[cfg(unix)]
583-
fn with_argv<T>(prog: &str, args: &[~str], cb: proc:(**libc::c_char) -> T) -> T {
583+
fn with_argv<T>(prog: &str, args: &[~str], cb: proc(**libc::c_char) -> T) -> T {
584584
use std::slice;
585585

586586
// We can't directly convert `str`s into `*char`s, as someone needs to hold
@@ -606,7 +606,7 @@ fn with_argv<T>(prog: &str, args: &[~str], cb: proc:(**libc::c_char) -> T) -> T
606606
}
607607

608608
#[cfg(unix)]
609-
fn with_envp<T>(env: Option<~[(~str, ~str)]>, cb: proc:(*c_void) -> T) -> T {
609+
fn with_envp<T>(env: Option<~[(~str, ~str)]>, cb: proc(*c_void) -> T) -> T {
610610
use std::slice;
611611

612612
// On posixy systems we can pass a char** for envp, which is a

src/libnative/task.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ fn ops() -> ~Ops {
5050
}
5151

5252
/// Spawns a function with the default configuration
53-
pub fn spawn(f: proc:Send()) {
53+
pub fn spawn(f: proc():Send) {
5454
spawn_opts(TaskOpts::new(), f)
5555
}
5656

5757
/// Spawns a new task given the configuration options and a procedure to run
5858
/// inside the task.
59-
pub fn spawn_opts(opts: TaskOpts, f: proc:Send()) {
59+
pub fn spawn_opts(opts: TaskOpts, f: proc():Send) {
6060
let TaskOpts {
6161
notify_chan, name, stack_size,
6262
stderr, stdout,
@@ -238,7 +238,7 @@ impl rt::Runtime for Ops {
238238
}
239239
}
240240

241-
fn spawn_sibling(~self, mut cur_task: ~Task, opts: TaskOpts, f: proc:Send()) {
241+
fn spawn_sibling(~self, mut cur_task: ~Task, opts: TaskOpts, f: proc():Send) {
242242
cur_task.put_runtime(self);
243243
Local::put(cur_task);
244244

src/librand/distributions/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ fn ziggurat<R:Rng>(
209209
symmetric: bool,
210210
x_tab: ziggurat_tables::ZigTable,
211211
f_tab: ziggurat_tables::ZigTable,
212-
pdf: 'static |f64| -> f64,
213-
zero_case: 'static |&mut R, f64| -> f64)
212+
pdf: |f64|: 'static -> f64,
213+
zero_case: |&mut R, f64|: 'static -> f64)
214214
-> f64 {
215215
static SCALE: f64 = (1u64 << 53) as f64;
216216
loop {

src/librand/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ mod test {
801801
#[test]
802802
fn test_shuffle() {
803803
let mut r = task_rng();
804-
let mut empty: &mut [int] = &mut [];
804+
let empty: &mut [int] = &mut [];
805805
r.shuffle(empty);
806806
let mut one = [1];
807807
r.shuffle(one);

src/librustc/front/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use syntax::{ast, fold, attr};
1313
use syntax::codemap;
1414

1515
struct Context<'a> {
16-
in_cfg: 'a |attrs: &[ast::Attribute]| -> bool,
16+
in_cfg: |attrs: &[ast::Attribute]|: 'a -> bool,
1717
}
1818

1919
// Support conditional compilation by transforming the AST, stripping out

src/librustc/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ fn parse_crate_attrs(sess: &session::Session, input: &d::Input) ->
364364
///
365365
/// The diagnostic emitter yielded to the procedure should be used for reporting
366366
/// errors of the compiler.
367-
pub fn monitor(f: proc:Send()) {
367+
pub fn monitor(f: proc():Send) {
368368
// FIXME: This is a hack for newsched since it doesn't support split stacks.
369369
// rustc needs a lot of stack! When optimizations are disabled, it needs
370370
// even *more* stack than usual as well.

src/librustc/metadata/decoder.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ fn lookup_hash<'a>(d: ebml::Doc<'a>, eq_fn: |&[u8]| -> bool,
7676
ret
7777
}
7878

79-
pub type GetCrateDataCb<'a> = 'a |ast::CrateNum| -> Cmd;
79+
pub type GetCrateDataCb<'a> = |ast::CrateNum|: 'a -> Cmd;
8080

8181
pub fn maybe_find_item<'a>(item_id: ast::NodeId,
8282
items: ebml::Doc<'a>) -> Option<ebml::Doc<'a>> {
@@ -637,11 +637,11 @@ pub fn get_item_path(cdata: Cmd, id: ast::NodeId) -> Vec<ast_map::PathElem> {
637637
item_path(lookup_item(id, cdata.data()))
638638
}
639639

640-
pub type DecodeInlinedItem<'a> = 'a |cdata: @cstore::crate_metadata,
641-
tcx: &ty::ctxt,
642-
path: Vec<ast_map::PathElem>,
643-
par_doc: ebml::Doc|
644-
-> Result<ast::InlinedItem, Vec<ast_map::PathElem> >;
640+
pub type DecodeInlinedItem<'a> = |cdata: @cstore::crate_metadata,
641+
tcx: &ty::ctxt,
642+
path: Vec<ast_map::PathElem>,
643+
par_doc: ebml::Doc|: 'a
644+
-> Result<ast::InlinedItem, Vec<ast_map::PathElem> >;
645645

646646
pub fn maybe_get_item_ast(cdata: Cmd, tcx: &ty::ctxt, id: ast::NodeId,
647647
decode_inlined_item: DecodeInlinedItem)

src/librustc/metadata/encoder.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ pub enum InlinedItemRef<'a> {
6464

6565
pub type Encoder<'a> = writer::Encoder<'a, MemWriter>;
6666

67-
pub type EncodeInlinedItem<'a> = 'a |ecx: &EncodeContext,
68-
ebml_w: &mut Encoder,
69-
ii: InlinedItemRef|;
67+
pub type EncodeInlinedItem<'a> = |ecx: &EncodeContext,
68+
ebml_w: &mut Encoder,
69+
ii: InlinedItemRef|: 'a;
7070

7171
pub struct EncodeParams<'a> {
7272
pub diag: &'a SpanHandler,

src/librustc/metadata/filesearch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub enum FileMatch { FileMatches, FileDoesntMatch }
2323

2424
/// Functions with type `pick` take a parent directory as well as
2525
/// a file found in that directory.
26-
pub type pick<'a> = 'a |path: &Path| -> FileMatch;
26+
pub type pick<'a> = |path: &Path|: 'a -> FileMatch;
2727

2828
pub struct FileSearch<'a> {
2929
pub sysroot: &'a Path,

src/librustc/metadata/tydecode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub enum DefIdSource {
5454
RegionParameter,
5555
}
5656
pub type conv_did<'a> =
57-
'a |source: DefIdSource, ast::DefId| -> ast::DefId;
57+
|source: DefIdSource, ast::DefId|: 'a -> ast::DefId;
5858

5959
pub struct PState<'a> {
6060
data: &'a [u8],

src/librustc/middle/trans/_match.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ fn assert_is_binding_or_wild(bcx: &Block, p: @ast::Pat) {
503503
}
504504
}
505505

506-
type enter_pat<'a> = 'a |@ast::Pat| -> Option<Vec<@ast::Pat>>;
506+
type enter_pat<'a> = |@ast::Pat|: 'a -> Option<Vec<@ast::Pat>>;
507507

508508
fn enter_match<'r,'b>(
509509
bcx: &'b Block<'b>,

src/librustc/middle/trans/base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ pub fn compare_scalar_values<'a>(
613613
}
614614

615615
pub type val_and_ty_fn<'r,'b> =
616-
'r |&'b Block<'b>, ValueRef, ty::t| -> &'b Block<'b>;
616+
|&'b Block<'b>, ValueRef, ty::t|: 'r -> &'b Block<'b>;
617617

618618
// Iterates through the elements of a structural type.
619619
pub fn iter_structural_ty<'r,

src/librustc/middle/trans/tvec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ pub fn get_base_and_len(bcx: &Block,
525525
}
526526

527527
pub type iter_vec_block<'r,'b> =
528-
'r |&'b Block<'b>, ValueRef, ty::t| -> &'b Block<'b>;
528+
|&'b Block<'b>, ValueRef, ty::t|: 'r -> &'b Block<'b>;
529529

530530
pub fn iter_vec_loop<'r,
531531
'b>(

src/librustc/middle/ty_fold.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ pub fn super_fold_trait_store<T:TypeFolder>(this: &mut T,
217217

218218
pub struct BottomUpFolder<'a> {
219219
pub tcx: &'a ty::ctxt,
220-
pub fldop: 'a |ty::t| -> ty::t,
220+
pub fldop: |ty::t|: 'a -> ty::t,
221221
}
222222

223223
impl<'a> TypeFolder for BottomUpFolder<'a> {
@@ -234,14 +234,14 @@ impl<'a> TypeFolder for BottomUpFolder<'a> {
234234

235235
pub struct RegionFolder<'a> {
236236
tcx: &'a ty::ctxt,
237-
fld_t: 'a |ty::t| -> ty::t,
238-
fld_r: 'a |ty::Region| -> ty::Region,
237+
fld_t: |ty::t|: 'a -> ty::t,
238+
fld_r: |ty::Region|: 'a -> ty::Region,
239239
}
240240

241241
impl<'a> RegionFolder<'a> {
242242
pub fn general(tcx: &'a ty::ctxt,
243-
fld_r: 'a |ty::Region| -> ty::Region,
244-
fld_t: 'a |ty::t| -> ty::t)
243+
fld_r: |ty::Region|: 'a -> ty::Region,
244+
fld_t: |ty::t|: 'a -> ty::t)
245245
-> RegionFolder<'a> {
246246
RegionFolder {
247247
tcx: tcx,
@@ -250,7 +250,7 @@ impl<'a> RegionFolder<'a> {
250250
}
251251
}
252252

253-
pub fn regions(tcx: &'a ty::ctxt, fld_r: 'a |ty::Region| -> ty::Region)
253+
pub fn regions(tcx: &'a ty::ctxt, fld_r: |ty::Region|: 'a -> ty::Region)
254254
-> RegionFolder<'a> {
255255
fn noop(t: ty::t) -> ty::t { t }
256256

src/librustc/middle/typeck/check/regionmanip.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub fn relate_nested_regions(tcx: &ty::ctxt,
8686
struct RegionRelator<'a> {
8787
tcx: &'a ty::ctxt,
8888
stack: Vec<ty::Region>,
89-
relate_op: 'a |ty::Region, ty::Region|,
89+
relate_op: |ty::Region, ty::Region|: 'a,
9090
}
9191

9292
// FIXME(#10151) -- Define more precisely when a region is

src/librustc/middle/typeck/infer/lattice.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub trait LatticeValue {
5454
}
5555

5656
pub type LatticeOp<'a, T> =
57-
'a |cf: &CombineFields, a: &T, b: &T| -> cres<T>;
57+
|cf: &CombineFields, a: &T, b: &T|: 'a -> cres<T>;
5858

5959
impl LatticeValue for ty::t {
6060
fn sub(cf: &CombineFields, a: &ty::t, b: &ty::t) -> ures {
@@ -407,7 +407,7 @@ pub fn super_lattice_tys<L:LatticeDir+TyLatticeDir+Combine>(this: &L,
407407
}
408408
}
409409

410-
pub type LatticeDirOp<'a, T> = 'a |a: &T, b: &T| -> cres<T>;
410+
pub type LatticeDirOp<'a, T> = |a: &T, b: &T|: 'a -> cres<T>;
411411

412412
#[deriving(Clone)]
413413
pub enum LatticeVarResult<V,T> {

src/librustc/util/common.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub fn indenter() -> _indenter {
6464
}
6565

6666
struct LoopQueryVisitor<'a> {
67-
p: 'a |&ast::Expr_| -> bool,
67+
p: |&ast::Expr_|: 'a -> bool,
6868
flag: bool,
6969
}
7070

@@ -92,7 +92,7 @@ pub fn loop_query(b: &ast::Block, p: |&ast::Expr_| -> bool) -> bool {
9292
}
9393

9494
struct BlockQueryVisitor<'a> {
95-
p: 'a |&ast::Expr| -> bool,
95+
p: |&ast::Expr|: 'a -> bool,
9696
flag: bool,
9797
}
9898

src/libstd/c_vec.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use raw;
4646
pub struct CVec<T> {
4747
base: *mut T,
4848
len: uint,
49-
dtor: Option<proc:Send()>,
49+
dtor: Option<proc():Send>,
5050
}
5151

5252
#[unsafe_destructor]
@@ -90,7 +90,7 @@ impl<T> CVec<T> {
9090
/// * dtor - A proc to run when the value is destructed, useful
9191
/// for freeing the buffer, etc.
9292
pub unsafe fn new_with_dtor(base: *mut T, len: uint,
93-
dtor: proc:Send()) -> CVec<T> {
93+
dtor: proc():Send) -> CVec<T> {
9494
assert!(base != ptr::mut_null());
9595
CVec {
9696
base: base,

src/libstd/io/net/unix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ mod tests {
141141
use io::*;
142142
use io::test::*;
143143

144-
pub fn smalltest(server: proc:Send(UnixStream), client: proc:Send(UnixStream)) {
144+
pub fn smalltest(server: proc(UnixStream):Send, client: proc(UnixStream):Send) {
145145
let path1 = next_test_unix();
146146
let path2 = path1.clone();
147147

0 commit comments

Comments
 (0)