Skip to content

Commit 558f27b

Browse files
committed
---
yaml --- r: 103419 b: refs/heads/auto c: d5aa795 h: refs/heads/master i: 103417: fa5d8a8 103415: 162be0a v: v3
1 parent 37f017a commit 558f27b

File tree

107 files changed

+961
-2392
lines changed

Some content is hidden

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

107 files changed

+961
-2392
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 84ebf74ee2f163461cf021b3d415171e8b5ef8be
16+
refs/heads/auto: d5aa795aa5f316bc5f43508df5bc41cba0a61ea8
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/mk/clean.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ clean-generic-$(2)-$(1):
5858
-name '*.[odasS]' -o \
5959
-name '*.so' -o \
6060
-name '*.dylib' -o \
61-
-name '*.rlib' -o \
6261
-name 'stamp.*' -o \
6362
-name '*.lib' -o \
6463
-name '*.dll' -o \

branches/auto/mk/dist.mk

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ PKG_ICO = $(S)src/etc/pkg/rust-logo.ico
1212
PKG_EXE = $(PKG_DIR)-install.exe
1313
endif
1414

15-
ifeq ($(CFG_OSTYPE), apple-darwin)
16-
PKG_OSX = $(PKG_DIR).pkg
17-
endif
18-
1915
PKG_GITMODULES := $(S)src/libuv $(S)src/llvm $(S)src/gyp $(S)src/compiler-rt
2016

2117
PKG_FILES := \
@@ -45,10 +41,10 @@ PKG_FILES := \
4541

4642
UNROOTED_PKG_FILES := $(patsubst $(S)%,./%,$(PKG_FILES))
4743

44+
ifdef CFG_ISCC
4845
LICENSE.txt: $(S)COPYRIGHT $(S)LICENSE-APACHE $(S)LICENSE-MIT
4946
cat $^ > $@
5047

51-
ifdef CFG_ISCC
5248
%.iss: $(S)src/etc/pkg/%.iss
5349
cp $< $@
5450

@@ -107,7 +103,7 @@ distcheck: dist
107103

108104
else
109105

110-
dist: $(PKG_TAR) $(PKG_OSX)
106+
dist: $(PKG_TAR)
111107

112108
distcheck: $(PKG_TAR)
113109
$(Q)rm -Rf dist
@@ -128,31 +124,3 @@ distcheck: $(PKG_TAR)
128124
@echo -----------------------------------------------
129125

130126
endif
131-
132-
ifeq ($(CFG_OSTYPE), apple-darwin)
133-
134-
dist-prepare-osx: PREPARE_HOST=$(CFG_BUILD)
135-
dist-prepare-osx: PREPARE_TARGETS=$(CFG_BUILD)
136-
dist-prepare-osx: PREPARE_DEST_DIR=tmp/dist/pkgroot
137-
dist-prepare-osx: PREPARE_STAGE=2
138-
dist-prepare-osx: PREPARE_DIR_CMD=$(DEFAULT_PREPARE_DIR_CMD)
139-
dist-prepare-osx: PREPARE_BIN_CMD=$(DEFAULT_PREPARE_BIN_CMD)
140-
dist-prepare-osx: PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
141-
dist-prepare-osx: PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
142-
dist-prepare-osx: prepare-base
143-
144-
$(PKG_OSX): Distribution.xml LICENSE.txt dist-prepare-osx
145-
@$(call E, making OS X pkg)
146-
$(Q)pkgbuild --identifier org.rust-lang.rust --root tmp/dist/pkgroot rust.pkg
147-
$(Q)productbuild --distribution Distribution.xml --resources . $(PKG_OSX)
148-
$(Q)rm -rf tmp rust.pkg
149-
150-
dist-osx: $(PKG_OSX)
151-
152-
distcheck-osx: $(PKG_OSX)
153-
@echo
154-
@echo -----------------------------------------------
155-
@echo $(PKG_OSX) ready for distribution
156-
@echo -----------------------------------------------
157-
158-
endif

branches/auto/src/doc/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ li {list-style-type: none; }
4242
* [The `sync` library for concurrency-enabled mechanisms and primitives](sync/index.html)
4343
* [The `syntax` library, the Rust parser](syntax/index.html)
4444
* [The `term` terminal-handling library](term/index.html)
45-
* [The `test` library containing the unit-testing & micro-benchmark framework](test/index.html)
46-
* [The `time` library](time/index.html)
45+
* [The `test` library](test/index.html)
4746
* [The `uuid` 128-bit universally unique identifier library](uuid/index.html)
4847

4948
# Tooling

branches/auto/src/doc/rust.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3256,10 +3256,10 @@ An example of a *recursive* type and its use:
32563256
~~~~
32573257
enum List<T> {
32583258
Nil,
3259-
Cons(T, ~List<T>)
3259+
Cons(T, @List<T>)
32603260
}
32613261
3262-
let a: List<int> = Cons(7, ~Cons(13, ~Nil));
3262+
let a: List<int> = Cons(7, @Cons(13, @Nil));
32633263
~~~~
32643264

32653265
### Pointer types

branches/auto/src/doc/tutorial.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,6 @@ fn main() {
133133
println!("hello?");
134134
}
135135
~~~~
136-
> ***Note:*** An identifier followed by an exclamation point, like
137-
> `println!`, is a macro invocation. Macros are explained
138-
> [later](#syntax-extensions); for now just remember to include the
139-
> exclamation point.
140136

141137
If the Rust compiler was installed successfully, running `rustc
142138
hello.rs` will produce an executable called `hello` (or `hello.exe` on
@@ -1063,7 +1059,7 @@ box, while the owner holds onto a pointer to it:
10631059
list -> | Cons | 1 | ~ | -> | Cons | 2 | ~ | -> | Cons | 3 | ~ | -> | Nil |
10641060
+--------------+ +--------------+ +--------------+ +--------------+
10651061

1066-
> ***Note:*** the above diagram shows the logical contents of the enum. The actual
1062+
> Note: the above diagram shows the logical contents of the enum. The actual
10671063
> memory layout of the enum may vary. For example, for the `List` enum shown
10681064
> above, Rust guarantees that there will be no enum tag field in the actual
10691065
> structure. See the language reference for more details.
@@ -1118,7 +1114,7 @@ let z = x; // no new memory allocated, `x` can no longer be used
11181114
~~~~
11191115

11201116
The `clone` method is provided by the `Clone` trait, and can be derived for
1121-
our `List` type. Traits will be explained in detail [later](#traits).
1117+
our `List` type. Traits will be explained in detail later.
11221118

11231119
~~~{.ignore}
11241120
#[deriving(Clone)]
@@ -1211,8 +1207,8 @@ let ys = Cons(5, ~Cons(10, ~Nil));
12111207
assert!(eq(&xs, &ys));
12121208
~~~
12131209

1214-
> ***Note:*** Rust doesn't guarantee [tail-call](http://en.wikipedia.org/wiki/Tail_call) optimization,
1215-
> but LLVM is able to handle a simple case like this with optimizations enabled.
1210+
Note that Rust doesn't guarantee [tail-call](http://en.wikipedia.org/wiki/Tail_call) optimization,
1211+
but LLVM is able to handle a simple case like this with optimizations enabled.
12161212

12171213
## Lists of other types
12181214

@@ -1222,9 +1218,6 @@ element type.
12221218

12231219
The `u32` in the previous definition can be substituted with a type parameter:
12241220

1225-
> ***Note:*** The following code introduces generics, which are explained in a
1226-
> [dedicated section](#generics).
1227-
12281221
~~~
12291222
enum List<T> {
12301223
Cons(T, ~List<T>),
@@ -1343,14 +1336,10 @@ impl<T: Eq> Eq for List<T> {
13431336
13441337
let xs = Cons(5, ~Cons(10, ~Nil));
13451338
let ys = Cons(5, ~Cons(10, ~Nil));
1346-
// The methods below are part of the Eq trait,
1347-
// which we implemented on our linked list.
13481339
assert!(xs.eq(&ys));
1340+
assert!(xs == ys);
13491341
assert!(!xs.ne(&ys));
1350-
1351-
// The Eq trait also allows us to use the shorthand infix operators.
1352-
assert!(xs == ys); // `xs == ys` is short for `xs.eq(&ys)`
1353-
assert!(!(xs != ys)); // `xs != ys` is short for `xs.ne(&ys)`
1342+
assert!(!(xs != ys));
13541343
~~~
13551344

13561345
# More on boxes

branches/auto/src/etc/ctags.rust

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--langdef=Rust
22
--langmap=Rust:.rs
3-
--regex-Rust=/^[ \t]*(#\[[^\]]\][ \t]*)*(pub[ \t]+)?(extern[ \t]+)?("[^"]+"[ \t]+)?(unsafe[ \t]+)?fn[ \t]+([a-zA-Z0-9_]+)/\6/f,functions,function definitions/
3+
--regex-Rust=/^[ \t]*(pub[ \t]+)?fn[ \t]+([a-zA-Z0-9_]+)/\2/f,functions,function definitions/
44
--regex-Rust=/^[ \t]*(pub[ \t]+)?type[ \t]+([a-zA-Z0-9_]+)/\2/T,types,type definitions/
55
--regex-Rust=/^[ \t]*(pub[ \t]+)?enum[ \t]+([a-zA-Z0-9_]+)/\2/g,enum,enumeration names/
66
--regex-Rust=/^[ \t]*(pub[ \t]+)?struct[ \t]+([a-zA-Z0-9_]+)/\2/s,structure names/

branches/auto/src/etc/pkg/Distribution.xml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: Rust
33
" Maintainer: Chris Morgan <[email protected]>
4-
" Last Change: 2014 Feb 27
4+
" Last Change: 2013 Jul 10
55

66
if exists("b:did_ftplugin")
77
finish
@@ -42,55 +42,4 @@ if exists("g:loaded_delimitMate")
4242
let b:delimitMate_excluded_regions = delimitMate#Get("excluded_regions") . ',rustLifetimeCandidate,rustGenericLifetimeCandidate'
4343
endif
4444

45-
" Bind motion commands to support hanging indents
46-
nnoremap <silent> <buffer> [[ :call <SID>Rust_Jump('n', 'Back')<CR>
47-
nnoremap <silent> <buffer> ]] :call <SID>Rust_Jump('n', 'Forward')<CR>
48-
xnoremap <silent> <buffer> [[ :call <SID>Rust_Jump('v', 'Back')<CR>
49-
xnoremap <silent> <buffer> ]] :call <SID>Rust_Jump('v', 'Forward')<CR>
50-
onoremap <silent> <buffer> [[ :call <SID>Rust_Jump('o', 'Back')<CR>
51-
onoremap <silent> <buffer> ]] :call <SID>Rust_Jump('o', 'Forward')<CR>
52-
53-
let b:undo_ftplugin = "
54-
\setlocal formatoptions< comments< commentstring< includeexpr< suffixesadd<
55-
\|if exists('b:rust_original_delimitMate_excluded_regions')
56-
\|let b:delimitMate_excluded_regions = b:rust_original_delimitMate_excluded_regions
57-
\|unlet b:rust_original_delimitMate_excluded_regions
58-
\|elseif exists('b:delimitMate_excluded_regions')
59-
\|unlet b:delimitMate_excluded_regions
60-
\|endif
61-
\|nunmap <buffer> [[
62-
\|nunmap <buffer> ]]
63-
\|xunmap <buffer> [[
64-
\|xunmap <buffer> ]]
65-
\|ounmap <buffer> [[
66-
\|ounmap <buffer> ]]
67-
\"
68-
69-
if exists('*<SID>Rust_Jump') | finish | endif
70-
71-
function! <SID>Rust_Jump(mode, function) range
72-
let cnt = v:count1
73-
normal! m'
74-
if a:mode ==# 'v'
75-
norm! gv
76-
endif
77-
let foldenable = &foldenable
78-
set nofoldenable
79-
while cnt > 0
80-
execute "call <SID>Rust_Jump_" . a:function . "()"
81-
let cnt = cnt - 1
82-
endwhile
83-
let &foldenable = foldenable
84-
endfunction
85-
86-
function! <SID>Rust_Jump_Back()
87-
call search('{', 'b')
88-
keepjumps normal! w99[{
89-
endfunction
90-
91-
function! <SID>Rust_Jump_Forward()
92-
normal! j0
93-
call search('{', 'b')
94-
keepjumps normal! w99[{%
95-
call search('{')
96-
endfunction
45+
let b:undo_ftplugin = "setlocal formatoptions< comments< commentstring< includeexpr< suffixesadd< | if exists('b:rust_original_delimitMate_excluded_regions') | let b:delimitMate_excluded_regions = b:rust_original_delimitMate_excluded_regions | unlet b:rust_original_delimitMate_excluded_regions | elseif exists('b:delimitMate_excluded_regions') | unlet b:delimitMate_excluded_regions | endif"

branches/auto/src/etc/vim/syntax/rust.vim

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Maintainer: Patrick Walton <[email protected]>
44
" Maintainer: Ben Blum <[email protected]>
55
" Maintainer: Chris Morgan <[email protected]>
6-
" Last Change: 2014 Feb 27
6+
" Last Change: 2014 Feb 14
77

88
if version < 600
99
syntax clear
@@ -18,8 +18,8 @@ syn keyword rustOperator as
1818

1919
syn match rustAssert "\<assert\(\w\)*!" contained
2020
syn match rustFail "\<fail\(\w\)*!" contained
21-
syn keyword rustKeyword break continue
22-
syn keyword rustKeyword extern nextgroup=rustExternCrate,rustObsoleteExternMod skipwhite
21+
syn keyword rustKeyword break continue do
22+
syn keyword rustKeyword extern nextgroup=rustExternCrate skipwhite
2323
syn keyword rustKeyword for in if impl let
2424
syn keyword rustKeyword loop once priv pub
2525
syn keyword rustKeyword return
@@ -35,13 +35,12 @@ syn keyword rustObsoleteStorage const
3535
syn keyword rustInvalidBareKeyword crate
3636

3737
syn keyword rustExternCrate crate contained nextgroup=rustIdentifier skipwhite
38-
syn keyword rustObsoleteExternMod mod contained nextgroup=rustIdentifier skipwhite
3938

4039
syn match rustIdentifier contains=rustIdentifierPrime "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
4140
syn match rustFuncName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
4241

4342
" Reserved (but not yet used) keywords {{{2
44-
syn keyword rustReservedKeyword alignof be do offsetof pure sizeof typeof yield
43+
syn keyword rustReservedKeyword alignof be offsetof pure sizeof typeof yield
4544

4645
" Built-in types {{{2
4746
syn keyword rustType int uint float char bool u8 u16 u32 u64 f32
@@ -52,7 +51,8 @@ syn keyword rustType f64 i8 i16 i32 i64 str Self
5251
" to make it easy to update.
5352

5453
" Core operators {{{3
55-
syn keyword rustTrait Freeze Pod Send Sized
54+
syn keyword rustTrait Sized
55+
syn keyword rustTrait Freeze Send
5656
syn keyword rustTrait Add Sub Mul Div Rem Neg Not
5757
syn keyword rustTrait BitAnd BitOr BitXor
5858
syn keyword rustTrait Drop
@@ -63,25 +63,32 @@ syn keyword rustEnum Result
6363
syn keyword rustEnumVariant Ok Err
6464

6565
" Functions {{{3
66-
"syn keyword rustFunction from_str
66+
"syn keyword rustFunction print println
6767
"syn keyword rustFunction range
68-
"syn keyword rustFunction drop
68+
"syn keyword rustFunction from_str
6969

7070
" Types and traits {{{3
7171
syn keyword rustTrait Any AnyOwnExt AnyRefExt AnyMutRefExt
7272
syn keyword rustTrait Ascii AsciiCast OwnedAsciiCast AsciiStr IntoBytes
73+
syn keyword rustTrait Bool
7374
syn keyword rustTrait ToCStr
7475
syn keyword rustTrait Char
7576
syn keyword rustTrait Clone DeepClone
7677
syn keyword rustTrait Eq Ord TotalEq TotalOrd Ordering Equiv
7778
syn keyword rustEnumVariant Less Equal Greater
7879
syn keyword rustTrait Container Mutable Map MutableMap Set MutableSet
80+
syn keyword rustTrait Default
81+
syn keyword rustTrait Hash
82+
syn keyword rustTrait FromStr
7983
syn keyword rustTrait FromIterator Extendable
8084
syn keyword rustTrait Iterator DoubleEndedIterator RandomAccessIterator CloneableIterator
8185
syn keyword rustTrait OrdIterator MutableDoubleEndedIterator ExactSize
82-
syn keyword rustTrait Num NumCast CheckedAdd CheckedSub CheckedMul
83-
syn keyword rustTrait Signed Unsigned Round
84-
syn keyword rustTrait Primitive Int Float ToPrimitive FromPrimitive
86+
87+
syn keyword rustTrait Algebraic Trigonometric Exponential Hyperbolic
88+
syn keyword rustTrait Bitwise Bounded Fractional
89+
syn keyword rustTrait Num NumCast CheckedAdd CheckedSub CheckedMul CheckedDiv
90+
syn keyword rustTrait Orderable Signed Unsigned Round
91+
syn keyword rustTrait Primitive Int Float ToStrRadix ToPrimitive FromPrimitive
8592
syn keyword rustTrait GenericPath Path PosixPath WindowsPath
8693
syn keyword rustTrait RawPtr
8794
syn keyword rustTrait Buffer Writer Reader Seek
@@ -91,17 +98,20 @@ syn keyword rustTrait Tuple1 Tuple2 Tuple3 Tuple4
9198
syn keyword rustTrait Tuple5 Tuple6 Tuple7 Tuple8
9299
syn keyword rustTrait Tuple9 Tuple10 Tuple11 Tuple12
93100
syn keyword rustTrait ImmutableEqVector ImmutableTotalOrdVector ImmutableCloneableVector
94-
syn keyword rustTrait OwnedVector OwnedCloneableVector OwnedEqVector
95-
syn keyword rustTrait MutableVector MutableTotalOrdVector
101+
syn keyword rustTrait OwnedVector OwnedCloneableVector OwnedEqVector MutableVector
96102
syn keyword rustTrait Vector VectorVector CloneableVector ImmutableVector
97103

98104
"syn keyword rustFunction stream
99-
syn keyword rustTrait Port Chan
105+
syn keyword rustTrait Port Chan GenericChan GenericSmartChan GenericPort Peekable
100106
"syn keyword rustFunction spawn
101107

102108
syn keyword rustSelf self
103109
syn keyword rustBoolean true false
104110

111+
syn keyword rustConstant Some None " option
112+
syn keyword rustConstant Ok Err " result
113+
syn keyword rustConstant Less Equal Greater " Ordering
114+
105115
" Other syntax {{{2
106116

107117
" If foo::bar changes to foo.bar, change this ("::" to "\.").
@@ -237,7 +247,6 @@ hi def link rustObsoleteStorage Error
237247
hi def link rustLifetime Special
238248
hi def link rustInvalidBareKeyword Error
239249
hi def link rustExternCrate rustKeyword
240-
hi def link rustObsoleteExternMod Error
241250

242251
" Other Suggestions:
243252
" hi rustAttribute ctermfg=cyan

0 commit comments

Comments
 (0)