Skip to content

Commit c3ea3e4

Browse files
committed
Register new snapshots
1 parent c83afb9 commit c3ea3e4

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3460,7 +3460,7 @@ fn add(x: int, y: int) -> int {
34603460
34613461
let mut x = add(5,7);
34623462
3463-
type Binop<'a> = 'a |int,int| -> int;
3463+
type Binop<'a> = |int,int|: 'a -> int;
34643464
let bo: Binop = add;
34653465
x = bo(5,7);
34663466
~~~~

src/libcollections/deque.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 8 deletions
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ fn spawn_process_os(config: p::ProcessConfig,
609609
}
610610

611611
#[cfg(unix)]
612-
fn with_argv<T>(prog: &str, args: &[~str], cb: proc:(**libc::c_char) -> T) -> T {
612+
fn with_argv<T>(prog: &str, args: &[~str], cb: proc(**libc::c_char) -> T) -> T {
613613
use std::slice;
614614

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

637637
#[cfg(unix)]
638-
fn with_envp<T>(env: Option<~[(~str, ~str)]>, cb: proc:(*c_void) -> T) -> T {
638+
fn with_envp<T>(env: Option<~[(~str, ~str)]>, cb: proc(*c_void) -> T) -> T {
639639
use std::slice;
640640

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

src/libnative/task.rs

Lines changed: 3 additions & 3 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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);

0 commit comments

Comments
 (0)