Skip to content

Commit 3798898

Browse files
committed
---
yaml --- r: 79213 b: refs/heads/auto c: caf5321 h: refs/heads/master i: 79211: 9968ec3 v: v3
1 parent a4ea896 commit 3798898

File tree

385 files changed

+7717
-11909
lines changed

Some content is hidden

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

385 files changed

+7717
-11909
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: 77c96d754e3a5d4b8dd59269b0cb0324350ccbec
16+
refs/heads/auto: caf5321eb45db8ba64d3f9f4b9e16febfeb46a4c
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/Makefile.in

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,10 +574,19 @@ ALL_TARGET_RULES = $(foreach target,$(CFG_TARGET_TRIPLES), \
574574
$(foreach host,$(CFG_HOST_TRIPLES), \
575575
all-target-$(target)-host-$(host)))
576576

577-
all: $(ALL_TARGET_RULES) $(GENERATED) docs
577+
all: rustllvm/llvm-auto-clean-stamp \
578+
$(ALL_TARGET_RULES) $(GENERATED) docs
578579

579580
endif
580581

582+
# This is used to independently force an LLVM clean rebuild
583+
# when we changed something not otherwise captured by builtin
584+
# dependencies. In these cases, commit a change that touches
585+
# the stamp in the source dir.
586+
rustllvm/llvm-auto-clean-stamp: $(S)src/rustllvm/llvm-auto-clean-trigger
587+
$(Q)$(MAKE) clean-llvm
588+
touch $@
589+
581590

582591
######################################################################
583592
# Re-configuration

branches/auto/configure

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,29 +664,32 @@ do
664664
make_dir $i
665665
done
666666

667+
make_dir llvm
667668
for t in $CFG_HOST_TRIPLES
668669
do
669-
make_dir $t/llvm
670+
make_dir llvm/$t
670671
done
671672

673+
make_dir rustllvm
672674
for t in $CFG_HOST_TRIPLES
673675
do
674-
make_dir $t/rustllvm
676+
make_dir rustllvm/$t
675677
done
676678

679+
make_dir rt
677680
for t in $CFG_TARGET_TRIPLES
678681
do
679-
make_dir $t/rt
682+
make_dir rt/$t
680683
for s in 0 1 2 3
681684
do
682-
make_dir $t/rt/stage$s
685+
make_dir rt/$t/stage$s
683686
for i in \
684687
isaac linenoise sync test \
685688
arch/i386 arch/x86_64 arch/arm arch/mips \
686689
libuv libuv/src/ares libuv/src/eio libuv/src/ev \
687690
jemalloc
688691
do
689-
make_dir $t/rt/stage$s/$i
692+
make_dir rt/$t/stage$s/$i
690693
done
691694
done
692695
done
@@ -788,7 +791,7 @@ do
788791

789792
if [ -z $CFG_LLVM_ROOT ]
790793
then
791-
LLVM_BUILD_DIR=${CFG_BUILD_DIR}$t/llvm
794+
LLVM_BUILD_DIR=${CFG_BUILD_DIR}llvm/$t
792795
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]
793796
then
794797
LLVM_DBG_OPTS="--enable-debug-symbols --disable-optimized"

branches/auto/doc/rust.md

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ code_. They are defined in the same way as any other Rust function,
10381038
except that they have the `extern` modifier.
10391039

10401040
~~~
1041-
// Declares an extern fn, the ABI defaults to "C"
1041+
// Declares an extern fn, the ABI defaults to "C"
10421042
extern fn new_vec() -> ~[int] { ~[] }
10431043
10441044
// Declares an extern fn with "stdcall" ABI
@@ -1723,62 +1723,6 @@ Supported traits for `deriving` are:
17231723
each constituent field of the type must also implement `ToStr` and will have
17241724
`field.to_str()` invoked to build up the result.
17251725

1726-
### Stability
1727-
One can indicate the stability of an API using the following attributes:
1728-
1729-
* `deprecated`: This item should no longer be used, e.g. it has been
1730-
replaced. No guarantee of backwards-compatibility.
1731-
* `experimental`: This item was only recently introduced or is
1732-
otherwise in a state of flux. It may change significantly, or even
1733-
be removed. No guarantee of backwards-compatibility.
1734-
* `unstable`: This item is still under development, but requires more
1735-
testing to be considered stable. No guarantee of backwards-compatibility.
1736-
* `stable`: This item is considered stable, and will not change
1737-
significantly. Guarantee of backwards-compatibility.
1738-
* `frozen`: This item is very stable, and is unlikely to
1739-
change. Guarantee of backwards-compatibility.
1740-
* `locked`: This item will never change unless a serious bug is
1741-
found. Guarantee of backwards-compatibility.
1742-
1743-
These levels are directly inspired by
1744-
[Node.js' "stability index"](http://nodejs.org/api/documentation.html).
1745-
1746-
There are lints for disallowing items marked with certain levels:
1747-
`deprecated`, `experimental` and `unstable`; the first two will warn
1748-
by default. Items with not marked with a stability are considered to
1749-
be unstable for the purposes of the lint. One can give an optional
1750-
string that will be displayed when the lint flags the use of an item.
1751-
1752-
~~~ {.xfail-test}
1753-
#[warn(unstable)];
1754-
1755-
#[deprecated="replaced by `best`"]
1756-
fn bad() {
1757-
// delete everything
1758-
}
1759-
1760-
fn better() {
1761-
// delete fewer things
1762-
}
1763-
1764-
#[stable]
1765-
fn best() {
1766-
// delete nothing
1767-
}
1768-
1769-
fn main() {
1770-
bad(); // "warning: use of deprecated item: replaced by `best`"
1771-
1772-
better(); // "warning: use of unmarked item"
1773-
1774-
best(); // no warning
1775-
}
1776-
~~~
1777-
1778-
> **Note:** Currently these are only checked when applied to
1779-
> individual functions, structs, methods and enum variants, *not* to
1780-
> entire modules, traits, impls or enums themselves.
1781-
17821726
# Statements and expressions
17831727

17841728
Rust is _primarily_ an expression language. This means that most forms of

branches/auto/doc/tutorial-container.md

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,14 @@ impl Iterator<int> for ZeroStream {
105105
}
106106
~~~
107107
108-
In general, you cannot rely on the behavior of the `next()` method after it has
109-
returned `None`. Some iterators may return `None` forever. Others may behave
110-
differently.
111-
112108
## Container iterators
113109
114110
Containers implement iteration over the contained elements by returning an
115111
iterator object. For example, vector slices several iterators available:
116112
117113
* `iter()` and `rev_iter()`, for immutable references to the elements
118114
* `mut_iter()` and `mut_rev_iter()`, for mutable references to the elements
119-
* `move_iter()` and `move_rev_iter()`, to move the elements out by-value
115+
* `move_iter()` and `move_rev_iter`, to move the elements out by-value
120116
121117
A typical mutable container will implement at least `iter()`, `mut_iter()` and
122118
`move_iter()` along with the reverse variants if it maintains an order.
@@ -153,7 +149,7 @@ let result = xs.iter().fold(0, |accumulator, item| accumulator - *item);
153149
assert_eq!(result, -41);
154150
~~~
155151
156-
Most adaptors return an adaptor object implementing the `Iterator` trait itself:
152+
Some adaptors return an adaptor object implementing the `Iterator` trait itself:
157153
158154
~~~
159155
let xs = [1, 9, 2, 3, 14, 12];
@@ -162,35 +158,6 @@ let sum = xs.iter().chain(ys.iter()).fold(0, |a, b| a + *b);
162158
assert_eq!(sum, 57);
163159
~~~
164160
165-
Some iterator adaptors may return `None` before exhausting the underlying
166-
iterator. Additionally, if these iterator adaptors are called again after
167-
returning `None`, they may call their underlying iterator again even if the
168-
adaptor will continue to return `None` forever. This may not be desired if the
169-
underlying iterator has side-effects.
170-
171-
In order to provide a guarantee about behavior once `None` has been returned, an
172-
iterator adaptor named `fuse()` is provided. This returns an iterator that will
173-
never call its underlying iterator again once `None` has been returned:
174-
175-
~~~
176-
let xs = [1,2,3,4,5];
177-
let mut calls = 0;
178-
let it = xs.iter().scan((), |_, x| {
179-
calls += 1;
180-
if *x < 3 { Some(x) } else { None }});
181-
// the iterator will only yield 1 and 2 before returning None
182-
// If we were to call it 5 times, calls would end up as 5, despite only 2 values
183-
// being yielded (and therefore 3 unique calls being made). The fuse() adaptor
184-
// can fix this.
185-
let mut it = it.fuse();
186-
it.next();
187-
it.next();
188-
it.next();
189-
it.next();
190-
it.next();
191-
assert_eq!(calls, 3);
192-
~~~
193-
194161
## For loops
195162
196163
The function `range` (or `range_inclusive`) allows to simply iterate through a given range:

branches/auto/mk/clean.mk

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,22 @@ clean: clean-misc $(CLEAN_STAGE_RULES)
3333

3434
clean-misc:
3535
@$(call E, cleaning)
36-
$(Q)find $(CFG_BUILD_TRIPLE)/rustllvm \
37-
$(CFG_BUILD_TRIPLE)/rt \
38-
$(CFG_BUILD_TRIPLE)/test \
36+
$(Q)find rustllvm rt $(CFG_BUILD_TRIPLE)/test \
3937
-name '*.[odasS]' -o \
4038
-name '*.so' -o \
4139
-name '*.dylib' -o \
4240
-name '*.dll' -o \
4341
-name '*.def' -o \
4442
-name '*.bc' \
4543
| xargs rm -f
46-
$(Q)find $(CFG_BUILD_TRIPLE)\
44+
$(Q)find rustllvm rt $(CFG_BUILD_TRIPLE)\
4745
-name '*.dSYM' \
4846
| xargs rm -Rf
4947
$(Q)rm -f $(RUNTIME_OBJS) $(RUNTIME_DEF)
5048
$(Q)rm -f $(RUSTLLVM_LIB_OBJS) $(RUSTLLVM_OBJS_OBJS) $(RUSTLLVM_DEF)
5149
$(Q)rm -Rf $(DOCS)
5250
$(Q)rm -Rf $(GENERATED)
53-
$(Q)rm -Rf tmp/*
51+
$(Q)rm -f tmp/*
5452
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
5553
$(Q)rm -Rf $(foreach ext, \
5654
html aux cp fn ky log pdf pg toc tp vr cps, \

branches/auto/mk/llvm.mk

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,12 @@ define DEF_LLVM_RULES
2424
# If CFG_LLVM_ROOT is defined then we don't build LLVM ourselves
2525
ifeq ($(CFG_LLVM_ROOT),)
2626

27-
LLVM_STAMP_$(1) = $$(CFG_LLVM_BUILD_DIR_$(1))/llvm-auto-clean-stamp
28-
29-
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS) $$(LLVM_STAMP_$(1))
27+
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS)
3028
@$$(call E, make: llvm)
3129
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1)) $$(CFG_LLVM_BUILD_ENV)
3230
$$(Q)touch $$(LLVM_CONFIG_$(1))
3331
endif
3432

35-
# This is used to independently force an LLVM clean rebuild
36-
# when we changed something not otherwise captured by builtin
37-
# dependencies. In these cases, commit a change that touches
38-
# the stamp in the source dir.
39-
$$(LLVM_STAMP_$(1)): $(S)src/rustllvm/llvm-auto-clean-trigger
40-
$(Q)$(MAKE) clean-llvm
41-
touch $$@
42-
4333
endef
4434

4535
$(foreach host,$(CFG_HOST_TRIPLES), \

0 commit comments

Comments
 (0)