Skip to content

Commit a79e5f0

Browse files
committed
---
yaml --- r: 113165 b: refs/heads/snap-stage3 c: 949143e h: refs/heads/master i: 113163: 0ea77c0 v: v3
1 parent 221df56 commit a79e5f0

File tree

20 files changed

+293
-415
lines changed

20 files changed

+293
-415
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: abdacecdf86b4b5a4f432560445a24e1c5f4751b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: cf6857b9e9427f14d383ae2924555bedc251fa02
4+
refs/heads/snap-stage3: 949143e17ae5462967e46363f0d5855237143a44
55
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/AUTHORS.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,6 @@ Raphael Speyer <[email protected]>
362362
reedlepee <[email protected]>
363363
Reuben Morais <[email protected]>
364364
Richard Diamond <[email protected]>
365-
Richo Healey <[email protected]>
366365
Rick Waldron <[email protected]>
367366
Rob Arnold <[email protected]>
368367
Rob Hoelz <[email protected]>

branches/snap-stage3/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ message explaining why.
3333

3434
In the licensing header at the beginning of any files you change,
3535
please make sure the listed date range includes the current year. For
36-
example, if it's 2014, and you change a Rust file that was created in
36+
example, if it's 2013, and you change a Rust file that was created in
3737
2010, it should begin:
3838

3939
```
40-
// Copyright 2010-2014 The Rust Project Developers.
40+
// Copyright 2010-2013 The Rust Project Developers.
4141
```
4242

4343
For more details, please refer to

branches/snap-stage3/mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ CFG_PATH_MUNGE_arm-unknown-linux-gnueabihf := true
330330
CFG_LDPATH_arm-unknown-linux-gnueabihf :=
331331
CFG_RUN_arm-unknown-linux-gnueabihf=$(2)
332332
CFG_RUN_TARG_arm-unknown-linux-gnueabihf=$(call CFG_RUN_arm-unknown-linux-gnueabihf,,$(2))
333-
RUSTC_FLAGS_arm-unknown-linux-gnueabihf := -C target-feature=+v6,+vfp2
333+
RUSTC_FLAGS_arm-unknown-linux-gnueabihf := -C target-feature=+v7,+vfp3
334334
RUSTC_CROSS_FLAGS_arm-unknown-linux-gnueabihf :=
335335

336336
# arm-unknown-linux-gnueabi configuration

branches/snap-stage3/src/doc/guide-tasks.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ closure in the new task.
8989
fn print_message() { println!("I am running in a different task!"); }
9090
spawn(print_message);
9191
92-
// Print something profound in a different task using a `proc` expression
93-
// The `proc` expression evaluates to an (unnamed) owned closure.
94-
// That closure will call `println!(...)` when the spawned task runs.
95-
92+
// Print something more profound in a different task using a lambda expression
93+
// This uses the proc() keyword to assign to spawn a function with no name
94+
// That function will call println!(...) as requested
9695
spawn(proc() println!("I am also running in a different task!") );
9796
~~~~
9897

branches/snap-stage3/src/doc/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ fn main() {
370370
```
371371

372372
This example is starting to get more subtle,
373-
but it hints at the powerful composability of Rust's concurrent types.
373+
but it hints at the powerful compositionality of Rust's concurrent types.
374374
This time we've put our array of numbers inside a `Mutex` and then put *that* inside the `Arc`.
375375
Like immutable data,
376376
`Mutex`es are sharable,

branches/snap-stage3/src/doc/tutorial.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2992,21 +2992,23 @@ And here an example with multiple files:
29922992
~~~{.ignore}
29932993
// `a.rs` - crate root
29942994
use b::foo;
2995+
use b::c::bar;
29952996
mod b;
2996-
fn main() { foo(); }
2997+
fn main() {
2998+
foo();
2999+
bar();
3000+
}
29973001
~~~
29983002

29993003
~~~{.ignore}
3000-
// `b.rs`
3001-
use b::c::bar;
3004+
// `b/mod.rs`
30023005
pub mod c;
3003-
pub fn foo() { bar(); }
3006+
pub fn foo() { println!("Foo!"; }
30043007
~~~
30053008

3006-
~~~
3007-
// `c.rs`
3008-
pub fn bar() { println!("Baz!"); }
3009-
# fn main() {}
3009+
~~~{.ignore}
3010+
// `b/c.rs`
3011+
pub fn bar() { println!("Bar!"); }
30103012
~~~
30113013

30123014
There also exist two short forms for importing multiple names at once:

branches/snap-stage3/src/etc/vim/indent/rust.vim

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ endif
3030

3131
" Come here when loading the script the first time.
3232

33-
function! s:get_line_trimmed(lnum)
33+
function s:get_line_trimmed(lnum)
3434
" Get the line and remove a trailing comment.
3535
" Use syntax highlighting attributes when possible.
3636
" NOTE: this is not accurate; /* */ or a line continuation could trick it
@@ -61,20 +61,6 @@ function! s:get_line_trimmed(lnum)
6161
endif
6262
endfunction
6363

64-
function! s:is_string_comment(lnum, col)
65-
if has('syntax_items')
66-
for id in synstack(a:lnum, a:col)
67-
let synname = synIDattr(id, "name")
68-
if synname == "rustString" || synname =~ "^rustComment"
69-
return 1
70-
endif
71-
endfor
72-
else
73-
" without syntax, let's not even try
74-
return 0
75-
endif
76-
endfunction
77-
7864
function GetRustIndent(lnum)
7965

8066
" Starting assumption: cindent (called at the end) will do it right
@@ -166,10 +152,8 @@ function GetRustIndent(lnum)
166152
" column zero)
167153

168154
call cursor(a:lnum, 1)
169-
if searchpair('{\|(', '', '}\|)', 'nbW'
170-
\ 's:is_string_comment(line("."), col("."))') == 0
171-
if searchpair('\[', '', '\]', 'nbW',
172-
\ 's:is_string_comment(line("."), col("."))') == 0
155+
if searchpair('{\|(', '', '}\|)', 'nbW') == 0
156+
if searchpair('\[', '', '\]', 'nbW') == 0
173157
" Global scope, should be zero
174158
return 0
175159
else

branches/snap-stage3/src/libnative/io/file_unix.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ pub fn open(path: &CString, fm: io::FileMode, fa: io::FileAccess)
335335

336336
pub fn mkdir(p: &CString, mode: io::FilePermission) -> IoResult<()> {
337337
super::mkerr_libc(retry(|| unsafe {
338-
libc::mkdir(p.with_ref(|p| p), mode.bits() as libc::mode_t)
338+
libc::mkdir(p.with_ref(|p| p), mode as libc::mode_t)
339339
}))
340340
}
341341

@@ -392,7 +392,7 @@ pub fn rename(old: &CString, new: &CString) -> IoResult<()> {
392392

393393
pub fn chmod(p: &CString, mode: io::FilePermission) -> IoResult<()> {
394394
super::mkerr_libc(retry(|| unsafe {
395-
libc::chmod(p.with_ref(|p| p), mode.bits() as libc::mode_t)
395+
libc::chmod(p.with_ref(|p| p), mode as libc::mode_t)
396396
}))
397397
}
398398

@@ -470,9 +470,7 @@ fn mkstat(stat: &libc::stat, path: &CString) -> io::FileStat {
470470
path: Path::new(path),
471471
size: stat.st_size as u64,
472472
kind: kind,
473-
perm: unsafe {
474-
io::FilePermission::from_bits(stat.st_mode as u32) & io::AllPermissions
475-
},
473+
perm: (stat.st_mode) as io::FilePermission & io::AllPermissions,
476474
created: mktime(stat.st_ctime as u64, stat.st_ctime_nsec as u64),
477475
modified: mktime(stat.st_mtime as u64, stat.st_mtime_nsec as u64),
478476
accessed: mktime(stat.st_atime as u64, stat.st_atime_nsec as u64),

branches/snap-stage3/src/libnative/io/file_win32.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ pub fn rename(old: &CString, new: &CString) -> IoResult<()> {
392392

393393
pub fn chmod(p: &CString, mode: io::FilePermission) -> IoResult<()> {
394394
super::mkerr_libc(as_utf16_p(p.as_str().unwrap(), |p| unsafe {
395-
libc::wchmod(p, mode.bits() as libc::c_int)
395+
libc::wchmod(p, mode as libc::c_int)
396396
}))
397397
}
398398

@@ -471,9 +471,7 @@ fn mkstat(stat: &libc::stat, path: &CString) -> io::FileStat {
471471
path: Path::new(path),
472472
size: stat.st_size as u64,
473473
kind: kind,
474-
perm: unsafe {
475-
io::FilePermission::from_bits(stat.st_mode as u32) & io::AllPermissions
476-
},
474+
perm: (stat.st_mode) as io::FilePermission & io::AllPermissions,
477475
created: stat.st_ctime as u64,
478476
modified: stat.st_mtime as u64,
479477
accessed: stat.st_atime as u64,

0 commit comments

Comments
 (0)