Skip to content

Commit 3e55496

Browse files
committed
---
yaml --- r: 109546 b: refs/heads/snap-stage3 c: f4518cd h: refs/heads/master v: v3
1 parent 73292c1 commit 3e55496

File tree

412 files changed

+3530
-3550
lines changed

Some content is hidden

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

412 files changed

+3530
-3550
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: b8ef9fd9c9f642ce7b8aed82782a1ed745d08d64
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 363198bca029802200b4eb7bc75ef7b9340a2496
4+
refs/heads/snap-stage3: f4518cdba7e7b5b40cea2b0549c4593414154829
55
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/.gitattributes

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

branches/snap-stage3/Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,10 @@ include config.mk
177177

178178
# Just a few macros used everywhere
179179
include $(CFG_SRC_DIR)mk/util.mk
180-
# Reconfiguring when the makefiles or submodules change
181-
include $(CFG_SRC_DIR)mk/reconfig.mk
182180
# All crates and their dependencies
183181
include $(CFG_SRC_DIR)mk/crates.mk
182+
# Reconfiguring when the makefiles or submodules change
183+
include $(CFG_SRC_DIR)mk/reconfig.mk
184184
# Various bits of setup, common macros, and top-level rules
185185
include $(CFG_SRC_DIR)mk/main.mk
186186
# C and assembly components that are not LLVM

branches/snap-stage3/configure

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

2929
need_cmd() {
30-
if command -v $1 >/dev/null 2>&1
30+
if which $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=$(command -v $P 2>&1)
86+
T=$(which $P 2>&1)
8787
if [ $? -eq 0 ]
8888
then
8989
VER0=$($P --version 2>/dev/null | head -1 \
@@ -384,7 +384,6 @@ opt pax-flags 0 "apply PaX flags to rustc binaries (required for GRSecurity/PaX-
384384
opt inject-std-version 1 "inject the current compiler version of libstd into programs"
385385
opt rpath 1 "build rpaths into rustc itself"
386386
opt nightly 0 "build nightly packages"
387-
opt verify-install 1 "verify installed binaries work"
388387
valopt prefix "/usr/local" "set installation prefix"
389388
valopt local-rust-root "/usr/local" "set prefix for local rust binary"
390389
valopt llvm-root "" "set LLVM root"

branches/snap-stage3/mk/crates.mk

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ COMPILER_DOC_CRATES := rustc syntax
105105
# $(1) is the crate to generate variables for
106106
define RUST_CRATE
107107
CRATEFILE_$(1) := $$(S)src/lib$(1)/lib.rs
108-
RSINPUTS_$(1) := $$(call rwildcard,$(S)src/lib$(1)/,*.rs)
108+
RSINPUTS_$(1) := $$(wildcard $$(addprefix $(S)src/lib$(1), \
109+
*.rs */*.rs */*/*.rs */*/*/*.rs))
109110
RUST_DEPS_$(1) := $$(filter-out native:%,$$(DEPS_$(1)))
110111
NATIVE_DEPS_$(1) := $$(patsubst native:%,%,$$(filter native:%,$$(DEPS_$(1))))
111112
endef
@@ -116,7 +117,8 @@ $(foreach crate,$(CRATES),$(eval $(call RUST_CRATE,$(crate))))
116117
#
117118
# $(1) is the crate to generate variables for
118119
define RUST_TOOL
119-
TOOL_INPUTS_$(1) := $$(call rwildcard,$$(dir $$(TOOL_SOURCE_$(1))),*.rs)
120+
TOOL_INPUTS_$(1) := $$(wildcard $$(addprefix $$(dir $$(TOOL_SOURCE_$(1))), \
121+
*.rs */*.rs */*/*.rs */*/*/*.rs))
120122
endef
121123

122124
$(foreach crate,$(TOOLS),$(eval $(call RUST_TOOL,$(crate))))

branches/snap-stage3/mk/dist.mk

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -160,27 +160,12 @@ 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 \
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
163+
dist/$(PKG_NAME)-$(1).pkg: $(S)src/etc/pkg/Distribution.xml LICENSE.txt dist-prepare-osx-$(1)
168164
@$$(call E, making OS X pkg)
169165
$(Q)pkgbuild --identifier org.rust-lang.rust --root tmp/dist/pkgroot-$(1) rust.pkg
170-
$(Q)productbuild --distribution $(S)src/etc/pkg/Distribution.xml \
171-
--resources tmp/dist/pkgres-$(1) dist/$(PKG_NAME)-$(1).pkg
166+
$(Q)productbuild --distribution $(S)src/etc/pkg/Distribution.xml --resources . dist/$(PKG_NAME)-$(1).pkg
172167
$(Q)rm -rf tmp rust.pkg
173168

174-
tmp/dist/pkgres-$(1)/LICENSE.txt: $(S)/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-
184169
endef
185170

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

branches/snap-stage3/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: $(D)/rust.md $(S)src/etc/extract_grammar.py
235+
doc/rust.g: 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/snap-stage3/mk/install.mk

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,14 @@
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
1611

1712
install: dist-install-dir-$(CFG_BUILD)
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)"
13+
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --prefix="$(CFG_PREFIX)" --libdir="$(CFG_LIBDIR)" --mandir="$(CFG_MANDIR)"
1914
# Remove tmp files while we can because they may have been created under sudo
20-
$(Q)rm -R tmp/dist/$(PKG_NAME)-$(CFG_BUILD)
15+
$(Q)rm -R tmp/dist/$(PKG_NAME)-$(CFG_BUILD/
2116

2217
uninstall: dist-install-dir-$(CFG_BUILD)
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/$(PKG_NAME)-$(CFG_BUILD)
18+
$(Q)sh tmp/dist/$(PKG_NAME)-$(CFG_BUILD)/install.sh --uninstall --prefix="$(CFG_PREFIX)" --libdir="$(CFG_LIBDIR)" --mandir="$(CFG_MANDIR)"
2619

2720

2821
######################################################################

branches/snap-stage3/mk/rt.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ $$(LIBUV_DIR_$(1))/Release/libuv.a: $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)) \
215215
BUILDTYPE=Release \
216216
NO_LOAD="$$(LIBUV_NO_LOAD)" \
217217
V=$$(VERBOSE)
218-
$$(Q)touch $$@
219218

220219
endif
221220

branches/snap-stage3/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/snap-stage3/src/doc/guide-unsafe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ Other features provided by lang items include:
595595
- stack unwinding and general failure; the `eh_personality`, `fail_`
596596
and `fail_bounds_checks` lang items.
597597
- the traits in `std::kinds` used to indicate types that satisfy
598-
various kinds; lang items `send`, `share` and `copy`.
598+
various kinds; lang items `send`, `share` and `pod`.
599599
- the marker types and variance indicators found in
600600
`std::kinds::markers`; lang items `covariant_type`,
601601
`contravariant_lifetime`, `no_share_bound`, etc.

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

Lines changed: 17 additions & 18 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,7 +205,6 @@ The keywords are the following strings:
205205
~~~~ {.notrust .keyword}
206206
as
207207
break
208-
crate
209208
do
210209
else enum extern
211210
false fn for
@@ -497,16 +496,16 @@ All of the above extensions are expressions with values.
497496
## Macros
498497

499498
~~~~ {.notrust .ebnf .gram}
500-
expr_macro_rules : "macro_rules" '!' ident '(' macro_rule * ')' ;
501-
macro_rule : '(' matcher * ')' "=>" '(' transcriber * ')' ';' ;
499+
expr_macro_rules : "macro_rules" '!' ident '(' macro_rule * ')'
500+
macro_rule : '(' matcher * ')' "=>" '(' transcriber * ')' ';'
502501
matcher : '(' matcher * ')' | '[' matcher * ']'
503502
| '{' matcher * '}' | '$' ident ':' ident
504503
| '$' '(' matcher * ')' sep_token? [ '*' | '+' ]
505-
| non_special_token ;
504+
| non_special_token
506505
transcriber : '(' transcriber * ')' | '[' transcriber * ']'
507506
| '{' transcriber * '}' | '$' ident
508507
| '$' '(' transcriber * ')' sep_token? [ '*' | '+' ]
509-
| non_special_token ;
508+
| non_special_token
510509
~~~~
511510

512511
User-defined syntax extensions are called "macros",
@@ -803,7 +802,7 @@ use_decl : "pub" ? "use" ident [ '=' path
803802
804803
path_glob : ident [ "::" path_glob ] ?
805804
| '*'
806-
| '{' ident [ ',' ident ] * '}' ;
805+
| '{' ident [ ',' ident ] * '}'
807806
~~~~
808807

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

14601459
~~~~ {.notrust .ebnf .gram}
1461-
extern_block_item : "extern" '{' extern_block '}' ;
1460+
extern_block_item : "extern" '{' extern_block '} ;
14621461
extern_block : [ foreign_fn ] * ;
14631462
~~~~
14641463

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

16851684
~~~~ {.notrust .ebnf .gram}
16861685
attribute : '#' '[' attr_list ']' ;
1687-
attr_list : attr [ ',' attr_list ]* ;
1686+
attr_list : attr [ ',' attr_list ]*
16881687
attr : ident [ '=' literal
16891688
| '(' attr_list ')' ] ? ;
16901689
~~~~
@@ -2332,7 +2331,7 @@ struct_expr : expr_path '{' ident ':' expr
23322331
[ ".." expr ] '}' |
23332332
expr_path '(' expr
23342333
[ ',' expr ] * ')' |
2335-
expr_path ;
2334+
expr_path
23362335
~~~~
23372336

23382337
There are several forms of structure expressions.
@@ -2383,7 +2382,7 @@ Point3d {y: 0, z: 10, .. base};
23832382
~~~~ {.notrust .ebnf .gram}
23842383
block_expr : '{' [ view_item ] *
23852384
[ stmt ';' | item ] *
2386-
[ expr ] '}' ;
2385+
[ expr ] '}'
23872386
~~~~
23882387

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

24122411
~~~~ {.notrust .ebnf .gram}
2413-
field_expr : expr '.' ident ;
2412+
field_expr : expr '.' ident
24142413
~~~~
24152414

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

24342433
~~~~ {.notrust .ebnf .gram}
2435-
vec_expr : '[' "mut" ? vec_elems? ']' ;
2434+
vec_expr : '[' "mut" ? vec_elems? ']'
24362435
2437-
vec_elems : [expr [',' expr]*] | [expr ',' ".." expr] ;
2436+
vec_elems : [expr [',' expr]*] | [expr ',' ".." expr]
24382437
~~~~
24392438

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

24562455
~~~~ {.notrust .ebnf .gram}
2457-
idx_expr : expr '[' expr ']' ;
2456+
idx_expr : expr '[' expr ']'
24582457
~~~~
24592458

24602459
[Vector](#vector-types)-typed expressions can be indexed by writing a
@@ -2876,7 +2875,7 @@ then any `else` block is executed.
28762875
~~~~ {.notrust .ebnf .gram}
28772876
match_expr : "match" expr '{' match_arm [ '|' match_arm ] * '}' ;
28782877
2879-
match_arm : match_pat "=>" [ expr "," | '{' block '}' ] ;
2878+
match_arm : match_pat '=>' [ expr "," | '{' block '}' ] ;
28802879
28812880
match_pat : pat [ ".." pat ] ? [ "if" expr ] ;
28822881
~~~~
@@ -3440,12 +3439,12 @@ The kinds are:
34403439
This kind includes scalars, owning pointers, owned closures, and
34413440
structural types containing only other owned types.
34423441
All `Send` types are `'static`.
3443-
`Copy`
3442+
`Pod`
34443443
: Types of this kind consist of "Plain Old Data"
34453444
which can be copied by simply moving bits.
34463445
All values of this kind can be implicitly copied.
34473446
This kind includes scalars and immutable references,
3448-
as well as structural types containing other `Copy` types.
3447+
as well as structural types containing other `Pod` types.
34493448
`'static`
34503449
: Types of this kind do not contain any references (except for
34513450
references with the `static` lifetime, which are allowed).

0 commit comments

Comments
 (0)