Skip to content

Commit 93f71d3

Browse files
committed
---
yaml --- r: 106415 b: refs/heads/auto c: 6281299 h: refs/heads/master i: 106413: bdcc861 106411: 8b39038 106407: 0e0a55f 106399: 0ac1022 v: v3
1 parent 89ecbee commit 93f71d3

File tree

428 files changed

+2862
-7079
lines changed

Some content is hidden

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

428 files changed

+2862
-7079
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: 7c2abe7c85966d1722fc387da16dc5e633d37962
16+
refs/heads/auto: 6281299230aca568723463897ed7448c9b51c4a7
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.h rust
66
*.rs rust
77
src/etc/pkg/rust-logo.ico binary
8+
src/etc/pkg/rust-logo.png binary
89
src/rt/msvc/* -whitespace
910
src/rt/vg/* -whitespace
1011
src/rt/jemalloc/**/* -whitespace

branches/auto/configure

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ need_ok() {
2727
}
2828

2929
need_cmd() {
30-
if which $1 >/dev/null 2>&1
30+
if command -v $1 >/dev/null 2>&1
3131
then msg "found $1"
3232
else err "need $1"
3333
fi
@@ -83,7 +83,7 @@ probe() {
8383
local T
8484
for P
8585
do
86-
T=$(which $P 2>&1)
86+
T=$(command -v $P 2>&1)
8787
if [ $? -eq 0 ]
8888
then
8989
VER0=$($P --version 2>/dev/null | head -1 \
@@ -274,6 +274,12 @@ case $CFG_OSTYPE in
274274
MINGW32*)
275275
CFG_OSTYPE=pc-mingw32
276276
;;
277+
278+
MINGW64*)
279+
# msys2, MSYSTEM=MINGW64
280+
CFG_OSTYPE=w64-mingw32
281+
;;
282+
277283
# Thad's Cygwin identifers below
278284

279285
# Vista 32 bit
@@ -384,6 +390,7 @@ opt pax-flags 0 "apply PaX flags to rustc binaries (required for GRSecurity/PaX-
384390
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
385391
opt rpath 1 "build rpaths into rustc itself"
386392
opt nightly 0 "build nightly packages"
393+
opt verify-install 1 "verify installed binaries work"
387394
valopt prefix "/usr/local" "set installation prefix"
388395
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
389396
valopt llvm-root "" "set LLVM root"
@@ -406,7 +413,7 @@ valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
406413
# --libdir is used to configure the installation directory.
407414
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
408415
CFG_LIBDIR_RELATIVE=lib
409-
if [ "$CFG_OSTYPE" = "pc-mingw32" ]
416+
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
410417
then
411418
CFG_LIBDIR_RELATIVE=bin
412419
fi
@@ -532,7 +539,7 @@ then
532539
fi
533540

534541
BIN_SUF=
535-
if [ $CFG_OSTYPE = "pc-mingw32" ]
542+
if [ "$CFG_OSTYPE" = "pc-mingw32" ] || [ "$CFG_OSTYPE" = "w64-mingw32" ]
536543
then
537544
BIN_SUF=.exe
538545
fi
@@ -603,7 +610,7 @@ then
603610
LLVM_VERSION=$($LLVM_CONFIG --version)
604611

605612
case $LLVM_VERSION in
606-
(3.[2-5]svn|3.[2-5])
613+
(3.[2-5]*)
607614
msg "found ok version of LLVM: $LLVM_VERSION"
608615
;;
609616
(*)

branches/auto/mk/dist.mk

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,27 @@ dist-prepare-osx-$(1): PREPARE_LIB_CMD=$(DEFAULT_PREPARE_LIB_CMD)
160160
dist-prepare-osx-$(1): PREPARE_MAN_CMD=$(DEFAULT_PREPARE_MAN_CMD)
161161
dist-prepare-osx-$(1): prepare-base-osx-$(1)
162162

163-
dist/$(PKG_NAME)-$(1).pkg: $(S)src/etc/pkg/Distribution.xml LICENSE.txt dist-prepare-osx-$(1)
163+
dist/$(PKG_NAME)-$(1).pkg: $(S)src/etc/pkg/Distribution.xml LICENSE.txt \
164+
dist-prepare-osx-$(1) \
165+
tmp/dist/pkgres-$(1)/LICENSE.txt \
166+
tmp/dist/pkgres-$(1)/welcome.rtf \
167+
tmp/dist/pkgres-$(1)/rust-logo.png
164168
@$$(call E, making OS X pkg)
165169
$(Q)pkgbuild --identifier org.rust-lang.rust --root tmp/dist/pkgroot-$(1) rust.pkg
166-
$(Q)productbuild --distribution $(S)src/etc/pkg/Distribution.xml --resources . dist/$(PKG_NAME)-$(1).pkg
170+
$(Q)productbuild --distribution $(S)src/etc/pkg/Distribution.xml \
171+
--resources tmp/dist/pkgres-$(1) dist/$(PKG_NAME)-$(1).pkg
167172
$(Q)rm -rf tmp rust.pkg
168173

174+
tmp/dist/pkgres-$(1)/LICENSE.txt: LICENSE.txt
175+
@$$(call E,pkg resource LICENSE.txt)
176+
$(Q)mkdir -p $$(@D)
177+
$(Q)cp $$< $$@
178+
179+
tmp/dist/pkgres-$(1)/%: $(S)src/etc/pkg/%
180+
@$$(call E,pkg resource $$*)
181+
$(Q)mkdir -p $$(@D)
182+
$(Q)cp -r $$< $$@
183+
169184
endef
170185

171186
$(foreach host,$(CFG_HOST),$(eval $(call DEF_OSX_PKG,$(host))))

branches/auto/mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ ifeq ($(CFG_LLNEXTGEN),)
232232
else
233233
.PHONY: verify-grammar
234234

235-
doc/rust.g: rust.md $(S)src/etc/extract_grammar.py
235+
doc/rust.g: $(D)/rust.md $(S)src/etc/extract_grammar.py
236236
@$(call E, extract_grammar: $@)
237237
$(Q)$(CFG_PYTHON) $(S)src/etc/extract_grammar.py $< >$@
238238

branches/auto/mk/install.mk

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,21 @@
88
# option. This file may not be copied, modified, or distributed
99
# except according to those terms.
1010

11+
ifdef CFG_DISABLE_VERIFY_INSTALL
12+
MAYBE_DISABLE_VERIFY=--disable-verify
13+
else
14+
MAYBE_DISABLE_VERIFY=
15+
endif
1116

1217
install: dist-install-dir-$(CFG_BUILD)
13-
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(CFG_PREFIX)" --libdir="$(CFG_LIBDIR)" --mandir="$(CFG_MANDIR)"
18+
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)" "$(MAYBE_DISABLE_VERIFY)"
1419
# Remove tmp files while we can because they may have been created under sudo
15-
$(Q)rm -R tmp/dist/$(PKG_NAME)-$(CFG_BUILD)
20+
$(Q)rm -R tmp/dist
1621

1722
uninstall: dist-install-dir-$(CFG_BUILD)
18-
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --uninstall --prefix="$(CFG_PREFIX)" --libdir="$(CFG_LIBDIR)" --mandir="$(CFG_MANDIR)"
23+
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --uninstall --prefix="$(DESTDIR)$(CFG_PREFIX)" --libdir="$(DESTDIR)$(CFG_LIBDIR)" --mandir="$(DESTDIR)$(CFG_MANDIR)"
24+
# Remove tmp files while we can because they may have been created under sudo
25+
$(Q)rm -R tmp/dist
1926

2027

2128
######################################################################

branches/auto/src/compiletest/compiletest.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[crate_type = "bin"];
12-
#[feature(phase)];
11+
#![crate_type = "bin"]
12+
#![feature(phase)]
1313

14-
#[allow(non_camel_case_types)];
15-
#[deny(warnings)];
14+
#![allow(non_camel_case_types)]
15+
#![deny(warnings)]
1616

1717
extern crate test;
1818
extern crate getopts;

branches/auto/src/doc/rust.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Some productions are defined by exclusion of particular Unicode characters:
153153
~~~~ {.notrust .ebnf .gram}
154154
comment : block_comment | line_comment ;
155155
block_comment : "/*" block_comment_body * '*' + '/' ;
156-
block_comment_body : (block_comment | character) * ;
156+
block_comment_body : [block_comment | character] * ;
157157
line_comment : "//" non_eol * ;
158158
~~~~
159159

@@ -205,6 +205,7 @@ The keywords are the following strings:
205205
~~~~ {.notrust .keyword}
206206
as
207207
break
208+
crate
208209
do
209210
else enum extern
210211
false fn for
@@ -496,16 +497,16 @@ All of the above extensions are expressions with values.
496497
## Macros
497498

498499
~~~~ {.notrust .ebnf .gram}
499-
expr_macro_rules : "macro_rules" '!' ident '(' macro_rule * ')'
500-
macro_rule : '(' matcher * ')' "=>" '(' transcriber * ')' ';'
500+
expr_macro_rules : "macro_rules" '!' ident '(' macro_rule * ')' ;
501+
macro_rule : '(' matcher * ')' "=>" '(' transcriber * ')' ';' ;
501502
matcher : '(' matcher * ')' | '[' matcher * ']'
502503
| '{' matcher * '}' | '$' ident ':' ident
503504
| '$' '(' matcher * ')' sep_token? [ '*' | '+' ]
504-
| non_special_token
505+
| non_special_token ;
505506
transcriber : '(' transcriber * ')' | '[' transcriber * ']'
506507
| '{' transcriber * '}' | '$' ident
507508
| '$' '(' transcriber * ')' sep_token? [ '*' | '+' ]
508-
| non_special_token
509+
| non_special_token ;
509510
~~~~
510511

511512
User-defined syntax extensions are called "macros",
@@ -802,7 +803,7 @@ use_decl : "pub" ? "use" ident [ '=' path
802803
803804
path_glob : ident [ "::" path_glob ] ?
804805
| '*'
805-
| '{' ident [ ',' ident ] * '}'
806+
| '{' ident [ ',' ident ] * '}' ;
806807
~~~~
807808

808809
A _use declaration_ creates one or more local name bindings synonymous
@@ -1457,7 +1458,7 @@ impl Seq<bool> for u32 {
14571458
### External blocks
14581459

14591460
~~~~ {.notrust .ebnf .gram}
1460-
extern_block_item : "extern" '{' extern_block '} ;
1461+
extern_block_item : "extern" '{' extern_block '}' ;
14611462
extern_block : [ foreign_fn ] * ;
14621463
~~~~
14631464

@@ -1683,7 +1684,7 @@ import public items from their destination, not private items.
16831684

16841685
~~~~ {.notrust .ebnf .gram}
16851686
attribute : '#' '[' attr_list ']' ;
1686-
attr_list : attr [ ',' attr_list ]*
1687+
attr_list : attr [ ',' attr_list ]* ;
16871688
attr : ident [ '=' literal
16881689
| '(' attr_list ')' ] ? ;
16891690
~~~~
@@ -2331,7 +2332,7 @@ struct_expr : expr_path '{' ident ':' expr
23312332
[ ".." expr ] '}' |
23322333
expr_path '(' expr
23332334
[ ',' expr ] * ')' |
2334-
expr_path
2335+
expr_path ;
23352336
~~~~
23362337

23372338
There are several forms of structure expressions.
@@ -2382,7 +2383,7 @@ Point3d {y: 0, z: 10, .. base};
23822383
~~~~ {.notrust .ebnf .gram}
23832384
block_expr : '{' [ view_item ] *
23842385
[ stmt ';' | item ] *
2385-
[ expr ] '}'
2386+
[ expr ] '}' ;
23862387
~~~~
23872388

23882389
A _block expression_ is similar to a module in terms of the declarations that
@@ -2409,7 +2410,7 @@ or dynamically dispatching if the left-hand-side expression is an indirect [obje
24092410
### Field expressions
24102411

24112412
~~~~ {.notrust .ebnf .gram}
2412-
field_expr : expr '.' ident
2413+
field_expr : expr '.' ident ;
24132414
~~~~
24142415

24152416
A _field expression_ consists of an expression followed by a single dot and an identifier,
@@ -2431,9 +2432,9 @@ it is automatically dereferenced to make the field access possible.
24312432
### Vector expressions
24322433

24332434
~~~~ {.notrust .ebnf .gram}
2434-
vec_expr : '[' "mut" ? vec_elems? ']'
2435+
vec_expr : '[' "mut" ? vec_elems? ']' ;
24352436
2436-
vec_elems : [expr [',' expr]*] | [expr ',' ".." expr]
2437+
vec_elems : [expr [',' expr]*] | [expr ',' ".." expr] ;
24372438
~~~~
24382439

24392440
A [_vector_](#vector-types) _expression_ is written by enclosing zero or
@@ -2453,7 +2454,7 @@ as a [literal](#literals) or a [static item](#static-items).
24532454
### Index expressions
24542455

24552456
~~~~ {.notrust .ebnf .gram}
2456-
idx_expr : expr '[' expr ']'
2457+
idx_expr : expr '[' expr ']' ;
24572458
~~~~
24582459

24592460
[Vector](#vector-types)-typed expressions can be indexed by writing a
@@ -2875,7 +2876,7 @@ then any `else` block is executed.
28752876
~~~~ {.notrust .ebnf .gram}
28762877
match_expr : "match" expr '{' match_arm [ '|' match_arm ] * '}' ;
28772878
2878-
match_arm : match_pat '=>' [ expr "," | '{' block '}' ] ;
2879+
match_arm : match_pat "=>" [ expr "," | '{' block '}' ] ;
28792880
28802881
match_pat : pat [ ".." pat ] ? [ "if" expr ] ;
28812882
~~~~

branches/auto/src/doc/tutorial.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,10 @@ access local variables in the enclosing scope.
17641764
17651765
~~~~
17661766
let mut max = 0;
1767-
[1, 2, 3].map(|x| if *x > max { max = *x });
1767+
let f = |x: int| if x > max { max = x };
1768+
for x in [1, 2, 3].iter() {
1769+
f(*x);
1770+
}
17681771
~~~~
17691772
17701773
Stack closures are very efficient because their environment is

0 commit comments

Comments
 (0)