Skip to content

Commit 180644a

Browse files
committed
---
yaml --- r: 63669 b: refs/heads/snap-stage3 c: 9f80591 h: refs/heads/master i: 63667: c23fa9d v: v3
1 parent a83fceb commit 180644a

File tree

130 files changed

+1519
-2690
lines changed

Some content is hidden

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

130 files changed

+1519
-2690
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: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 276463f06416e54d83f1ba628f82b1f014142426
4+
refs/heads/snap-stage3: 9f80591d84790a9571707a85cf4bc5d8f6df114d
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/RELEASES.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ Version 0.7 (July 2013)
7878
* extra: `BigInt`, `BigUint` implement numeric and comparison traits.
7979
* extra: `term` uses terminfo now, is more correct.
8080
* extra: `arc` functions converted to methods.
81-
* extra: Implementation of fixed output size variations of SHA-2.
8281

8382
* Tooling
8483
* `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks.

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

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Rust
33
" Maintainer: Patrick Walton <[email protected]>
44
" Maintainer: Ben Blum <[email protected]>
5-
" Last Change: 2012 Jun 14
5+
" Last Change: 2012 Dec 25
66

77
if version < 600
88
syntax clear
@@ -13,16 +13,13 @@ endif
1313
syn keyword rustConditional match if else
1414
syn keyword rustOperator as
1515

16-
syn match rustAssert "\<assert\(\w\)*!"
17-
syn match rustFail "\<fail\(\w\)*!"
1816
syn keyword rustKeyword break copy do drop extern
1917
syn keyword rustKeyword for if impl let log
2018
syn keyword rustKeyword copy do extern
2119
syn keyword rustKeyword for impl let log
2220
syn keyword rustKeyword loop mod once priv pub
2321
syn keyword rustKeyword return
24-
syn keyword rustKeyword unsafe while
25-
syn keyword rustKeyword use nextgroup=rustModPath skipwhite
22+
syn keyword rustKeyword unsafe use while
2623
" FIXME: Scoped impl's name is also fallen in this category
2724
syn keyword rustKeyword mod trait struct enum type nextgroup=rustIdentifier skipwhite
2825
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite
@@ -48,8 +45,7 @@ syn keyword rustType c_longlong c_ulonglong intptr_t uintptr_t
4845
syn keyword rustType off_t dev_t ino_t pid_t mode_t ssize_t
4946

5047
syn keyword rustTrait Const Copy Send Owned Sized " inherent traits
51-
syn keyword rustTrait Clone Decodable Encodable IterBytes Rand ToStr
52-
syn keyword rustTrait Eq Ord TotalEq TotalOrd Num Ptr
48+
syn keyword rustTrait Eq Ord Num Ptr
5349
syn keyword rustTrait Drop Add Sub Mul Quot Rem Neg BitAnd BitOr
5450
syn keyword rustTrait BitXor Shl Shr Index
5551

@@ -76,21 +72,19 @@ syn keyword rustConstant STDIN_FILENO STDOUT_FILENO STDERR_FILENO
7672
" If foo::bar changes to foo.bar, change this ("::" to "\.").
7773
" If foo::bar changes to Foo::bar, change this (first "\w" to "\u").
7874
syn match rustModPath "\w\(\w\)*::[^<]"he=e-3,me=e-3
79-
syn match rustModPath "\w\(\w\)*" contained " only for 'use path;'
8075
syn match rustModPathSep "::"
8176

8277
syn match rustFuncCall "\w\(\w\)*("he=e-1,me=e-1
8378
syn match rustFuncCall "\w\(\w\)*::<"he=e-3,me=e-3 " foo::<T>();
8479

85-
syn match rustMacro '\w\(\w\)*!' contains=rustAssert,rustFail
86-
syn match rustMacro '#\w\(\w\)*' contains=rustAssert,rustFail
80+
syn match rustMacro '\w\(\w\)*!'
81+
syn match rustMacro '#\w\(\w\)*'
8782

8883
syn match rustFormat display "%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([hlLjzt]\|ll\|hh\)\=\([aAbdiuoxXDOUfFeEgGcCsSpn?]\|\[\^\=.[^]]*\]\)" contained
8984
syn match rustFormat display "%%" contained
9085
syn region rustString start=+L\="+ skip=+\\\\\|\\"+ end=+"+ contains=rustTodo,rustFormat
9186

92-
syn region rustAttribute start="#\[" end="\]" contains=rustString,rustDeriving
93-
syn region rustDeriving start="deriving(" end=")" contains=rustTrait
87+
syn region rustAttribute start="#\[" end="\]" contains=rustString
9488

9589
" Number literals
9690
syn match rustNumber display "\<[0-9][0-9_]*\>"
@@ -149,17 +143,11 @@ hi def link rustMacro Macro
149143
hi def link rustType Type
150144
hi def link rustTodo Todo
151145
hi def link rustAttribute PreProc
152-
hi def link rustDeriving PreProc
153146
hi def link rustStorage StorageClass
154147
hi def link rustLifetime Special
155148

156149
" Other Suggestions:
157-
" hi rustAttribute ctermfg=cyan
158-
" hi rustDeriving ctermfg=cyan
159-
" hi rustAssert ctermfg=yellow
160-
" hi rustFail ctermfg=red
161150
" hi rustMacro ctermfg=magenta
162-
" hi rustModPathSep ctermfg=grey
163151

164152
syn sync minlines=200
165153
syn sync maxlines=500

branches/snap-stage3/src/libextra/arena.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -39,7 +39,7 @@ use core::prelude::*;
3939
use list::{MutList, MutCons, MutNil};
4040

4141
use core::at_vec;
42-
use core::cast::{transmute, transmute_mut, transmute_mut_region};
42+
use core::cast::{transmute, transmute_mut_region};
4343
use core::cast;
4444
use core::libc::size_t;
4545
use core::ptr;
@@ -74,7 +74,6 @@ struct Chunk {
7474
is_pod: bool,
7575
}
7676

77-
#[mutable]
7877
pub struct Arena {
7978
// The head is separated out from the list as a unbenchmarked
8079
// microoptimization, to avoid needing to case on the list to
@@ -270,22 +269,23 @@ impl Arena {
270269

271270
// The external interface
272271
#[inline]
273-
pub fn alloc<'a, T>(&'a self, op: &fn() -> T) -> &'a T {
272+
pub fn alloc<'a, T>(&'a mut self, op: &fn() -> T) -> &'a T {
274273
unsafe {
275274
// XXX: Borrow check
276-
let this = transmute_mut(self);
277-
if intrinsics::needs_drop::<T>() {
278-
this.alloc_nonpod(op)
279-
} else {
280-
this.alloc_pod(op)
275+
let this = transmute_mut_region(self);
276+
if !intrinsics::needs_drop::<T>() {
277+
return this.alloc_pod(op);
281278
}
279+
// XXX: Borrow check
280+
let this = transmute_mut_region(self);
281+
this.alloc_nonpod(op)
282282
}
283283
}
284284
}
285285

286286
#[test]
287287
fn test_arena_destructors() {
288-
let arena = Arena();
288+
let mut arena = Arena();
289289
for uint::range(0, 10) |i| {
290290
// Arena allocate something with drop glue to make sure it
291291
// doesn't leak.
@@ -300,7 +300,7 @@ fn test_arena_destructors() {
300300
#[should_fail]
301301
#[ignore(cfg(windows))]
302302
fn test_arena_destructors_fail() {
303-
let arena = Arena();
303+
let mut arena = Arena();
304304
// Put some stuff in the arena.
305305
for uint::range(0, 10) |i| {
306306
// Arena allocate something with drop glue to make sure it

branches/snap-stage3/src/libextra/bitv.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,12 @@ impl BitvSet {
666666
pub fn symmetric_difference_with(&mut self, other: &BitvSet) {
667667
self.other_op(other, |w1, w2| w1 ^ w2);
668668
}
669+
}
670+
671+
impl BaseIter<uint> for BitvSet {
672+
fn size_hint(&self) -> Option<uint> { Some(self.len()) }
669673

670-
pub fn each(&self, blk: &fn(v: &uint) -> bool) -> bool {
674+
fn each(&self, blk: &fn(v: &uint) -> bool) -> bool {
671675
for self.bitv.storage.iter().enumerate().advance |(i, &w)| {
672676
if !iterate_bits(i * uint::bits, w, |b| blk(&b)) {
673677
return false;

branches/snap-stage3/src/libextra/crypto/digest.rs

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

0 commit comments

Comments
 (0)