Skip to content

Commit 4776183

Browse files
committed
---
yaml --- r: 231890 b: refs/heads/auto c: e3fd444 h: refs/heads/master v: v3
1 parent 46b5f39 commit 4776183

File tree

172 files changed

+9057
-1062
lines changed

Some content is hidden

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

172 files changed

+9057
-1062
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 3860f974a72f7e11d664c0c036612e0bb41490eb
11+
refs/heads/auto: e3fd444dc99dd478fbad0b26ce40d28833a0a9d3
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/COPYRIGHT

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -22,104 +22,6 @@ The Rust Project includes packages written by third parties.
2222
The following third party packages are included, and carry
2323
their own copyright notices and license terms:
2424

25-
* Two header files that are part of the Valgrind
26-
package. These files are found at src/rt/valgrind/valgrind.h and
27-
src/rt/valgrind/memcheck.h, within this distribution. These files
28-
are redistributed under the following terms, as noted in
29-
them:
30-
31-
for src/rt/valgrind/valgrind.h:
32-
33-
This file is part of Valgrind, a dynamic binary
34-
instrumentation framework.
35-
36-
Copyright (C) 2000-2010 Julian Seward. All rights
37-
reserved.
38-
39-
Redistribution and use in source and binary forms, with
40-
or without modification, are permitted provided that the
41-
following conditions are met:
42-
43-
1. Redistributions of source code must retain the above
44-
copyright notice, this list of conditions and the
45-
following disclaimer.
46-
47-
2. The origin of this software must not be
48-
misrepresented; you must not claim that you wrote the
49-
original software. If you use this software in a
50-
product, an acknowledgment in the product
51-
documentation would be appreciated but is not
52-
required.
53-
54-
3. Altered source versions must be plainly marked as
55-
such, and must not be misrepresented as being the
56-
original software.
57-
58-
4. The name of the author may not be used to endorse or
59-
promote products derived from this software without
60-
specific prior written permission.
61-
62-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
63-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
64-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
65-
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
66-
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
67-
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
68-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
69-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
70-
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
71-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
72-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
73-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
74-
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
75-
OF SUCH DAMAGE.
76-
77-
for src/rt/valgrind/memcheck.h:
78-
79-
This file is part of MemCheck, a heavyweight Valgrind
80-
tool for detecting memory errors.
81-
82-
Copyright (C) 2000-2010 Julian Seward. All rights
83-
reserved.
84-
85-
Redistribution and use in source and binary forms, with
86-
or without modification, are permitted provided that the
87-
following conditions are met:
88-
89-
1. Redistributions of source code must retain the above
90-
copyright notice, this list of conditions and the
91-
following disclaimer.
92-
93-
2. The origin of this software must not be
94-
misrepresented; you must not claim that you wrote the
95-
original software. If you use this software in a
96-
product, an acknowledgment in the product
97-
documentation would be appreciated but is not
98-
required.
99-
100-
3. Altered source versions must be plainly marked as
101-
such, and must not be misrepresented as being the
102-
original software.
103-
104-
4. The name of the author may not be used to endorse or
105-
promote products derived from this software without
106-
specific prior written permission.
107-
108-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
109-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
110-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
111-
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
112-
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
113-
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
114-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
115-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
116-
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
117-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
118-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
119-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
120-
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
121-
OF SUCH DAMAGE.
122-
12325
* The src/rt/miniz.c file, carrying an implementation of
12426
RFC1950/RFC1951 DEFLATE, by Rich Geldreich
12527
<[email protected]>. All uses of this file are

branches/auto/RELEASES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 1.2.0 (August 2015)
1+
Version 1.2.0 (2015-08-07)
22
===========================
33

44
* ~1200 changes, numerous bugfixes
@@ -156,7 +156,7 @@ Misc
156156
[ad]: https://github.com/rust-lang/rust/pull/27382
157157
[win]: https://github.com/rust-lang/rust/pull/25350
158158

159-
Version 1.1.0 (June 2015)
159+
Version 1.1.0 (2015-06-25)
160160
=========================
161161

162162
* ~850 changes, numerous bugfixes
@@ -267,7 +267,7 @@ Misc
267267
[`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
268268
[drop]: https://github.com/rust-lang/rust/pull/24935
269269

270-
Version 1.0.0 (May 2015)
270+
Version 1.0.0 (2015-05-15)
271271
========================
272272

273273
* ~1500 changes, numerous bugfixes

branches/auto/configure

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,16 +1180,27 @@ do
11801180
# MSVC requires cmake because that's how we're going to build LLVM
11811181
probe_need CFG_CMAKE cmake
11821182

1183+
# There are three builds of cmake on windows: MSVC, MinGW and Cygwin
1184+
# The Cygwin build does not have generators for Visual Studio, so
1185+
# detect that here and error.
1186+
if ! "$CFG_CMAKE" --help | sed -n '/^Generators/,$p' | grep 'Visual Studio' > /dev/null
1187+
then
1188+
err "cmake does not support Visual Studio generators.\n\n \
1189+
This is likely due to it being an msys/cygwin build of cmake, \
1190+
rather than the required windows version, built using MinGW \
1191+
or Visual Studio."
1192+
fi
1193+
11831194
# Use the REG program to figure out where VS is installed
11841195
# We need to figure out where cl.exe and link.exe are, so we do some
11851196
# munging and some probing here. We also look for the default
11861197
# INCLUDE and LIB variables for MSVC so we can set those in the
11871198
# build system as well.
1188-
install=$(reg QUERY \
1199+
install=$(cmd //c reg QUERY \
11891200
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0' \
11901201
-v InstallDir)
11911202
if [ -z "$install" ]; then
1192-
install=$(reg QUERY \
1203+
install=$(cmd //c reg QUERY \
11931204
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
11941205
-v InstallDir)
11951206
fi
@@ -1222,9 +1233,9 @@ do
12221233
eval CFG_MSVC_LINK_$bits="\"$bindir/link.exe\""
12231234

12241235
vcvarsall="${CFG_MSVC_ROOT}/VC/vcvarsall.bat"
1225-
include_path=$(cmd /c "\"$vcvarsall\" $msvc_part && cmd /c echo %INCLUDE%")
1236+
include_path=$(cmd //V:ON //c "$vcvarsall" $msvc_part \& echo !INCLUDE!)
12261237
need_ok "failed to learn about MSVC's INCLUDE"
1227-
lib_path=$(cmd /c "\"$vcvarsall\" $msvc_part && cmd /c echo %LIB%")
1238+
lib_path=$(cmd //V:ON //c "$vcvarsall" $msvc_part \& echo !LIB!)
12281239
need_ok "failed to learn about MSVC's LIB"
12291240

12301241
eval CFG_MSVC_INCLUDE_PATH_${bits}="\"$include_path\""

branches/auto/mk/crates.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ TARGET_CRATES := libc std flate arena term \
5454
log graphviz core rbml alloc \
5555
rustc_unicode rustc_bitflags \
5656
alloc_system
57-
RUSTC_CRATES := rustc rustc_typeck rustc_borrowck rustc_resolve rustc_driver \
57+
RUSTC_CRATES := rustc rustc_typeck rustc_mir rustc_borrowck rustc_resolve rustc_driver \
5858
rustc_trans rustc_back rustc_llvm rustc_privacy rustc_lint \
5959
rustc_data_structures rustc_front rustc_platform_intrinsics
6060
HOST_CRATES := syntax $(RUSTC_CRATES) rustdoc fmt_macros
@@ -70,11 +70,12 @@ DEPS_std := core libc rand alloc collections rustc_unicode \
7070
DEPS_graphviz := std
7171
DEPS_syntax := std term serialize log fmt_macros arena libc rustc_bitflags
7272
DEPS_rustc_driver := arena flate getopts graphviz libc rustc rustc_back rustc_borrowck \
73-
rustc_typeck rustc_resolve log syntax serialize rustc_llvm \
73+
rustc_typeck rustc_mir rustc_resolve log syntax serialize rustc_llvm \
7474
rustc_trans rustc_privacy rustc_lint rustc_front
7575

7676
DEPS_rustc_trans := arena flate getopts graphviz libc rustc rustc_back \
7777
log syntax serialize rustc_llvm rustc_front rustc_platform_intrinsics
78+
DEPS_rustc_mir := rustc rustc_front syntax
7879
DEPS_rustc_typeck := rustc syntax rustc_front rustc_platform_intrinsics
7980
DEPS_rustc_borrowck := rustc rustc_front log graphviz syntax
8081
DEPS_rustc_resolve := rustc rustc_front log syntax

branches/auto/mk/main.mk

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,18 @@ RUST_LIB_FLAGS_ST3 += -C prefer-dynamic
172172
# by not emitting them.
173173
RUSTFLAGS_STAGE0 += -Z no-landing-pads
174174

175+
# Enable MIR to "always build" for crates where this works. This is
176+
# just temporary while MIR is being actively built up -- it's just a
177+
# poor man's unit testing infrastructure. Anyway we only want this for
178+
# stage1/stage2.
179+
define ADD_MIR_FLAG
180+
RUSTFLAGS1_$(1) += -Z always-build-mir
181+
RUSTFLAGS2_$(1) += -Z always-build-mir
182+
endef
183+
$(foreach crate,$(TARGET_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
184+
$(foreach crate,$(RUSTC_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
185+
$(foreach crate,$(HOST_CRATES),$(eval $(call ADD_MIR_FLAG,$(crate))))
186+
175187
# platform-specific auto-configuration
176188
include $(CFG_SRC_DIR)mk/platform.mk
177189

branches/auto/mk/target.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ $$(TLIB$(1)_T_$(2)_H_$(3))/stamp.$(4): \
9393
$$(LLVM_LIBDIR_RUSTFLAGS_$(2)) \
9494
$$(LLVM_STDCPP_RUSTFLAGS_$(2)) \
9595
$$(RUSTFLAGS_$(4)) \
96+
$$(RUSTFLAGS$(1)_$(4)) \
9697
$$(RUSTFLAGS$(1)_$(4)_T_$(2)) \
9798
--out-dir $$(@D) \
9899
-C extra-filename=-$$(CFG_FILENAME_EXTRA) \

branches/auto/src/doc/index.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,30 @@ series of small examples.
2020

2121
[rbe]: http://rustbyexample.com/
2222

23-
# The Standard Library
23+
# Language Reference
24+
25+
Rust does not have an exact specification yet, but an effort to describe as much of
26+
the language in as much detail as possible is in [the reference](reference.html).
27+
28+
# Standard Library Reference
2429

2530
We have [API documentation for the entire standard
2631
library](std/index.html). There's a list of crates on the left with more
2732
specific sections, or you can use the search bar at the top to search for
2833
something if you know its name.
2934

35+
# Tools
36+
37+
[Cargo](https://crates.io) is the Rust's package manager providing access to libraries
38+
beyond the standard one, and its website contains lots of good documentation.
39+
40+
[`rustdoc`](book/documentation.html) is the Rust's documentation generator, a tool converting
41+
annotated source code into HTML docs.
42+
43+
A bunch of non-official tools are available, such as [Racer](https://github.com/phildawes/racer)
44+
(code completion engine), or [rustfmt](https://github.com/nrc/rustfmt) (source code formatter),
45+
or text editor plugins.
46+
3047
# Community & Getting Help
3148

3249
If you need help with something, or just want to talk about Rust with others,
@@ -54,25 +71,10 @@ There is an active [subreddit](https://reddit.com/r/rust) with lots of
5471
discussion and news about Rust.
5572

5673
There is also a [user forum](https://users.rust-lang.org), for all
57-
user-oriented discussion, and a [developer
74+
user-oriented discussion, and a [developer
5875
forum](https://internals.rust-lang.org/), where the development of Rust
5976
itself is discussed.
6077

61-
# Specification
62-
63-
Rust does not have an exact specification, but an effort to describe as much of
64-
the language in as much detail as possible is in [the reference](reference.html).
65-
66-
# Tools
67-
68-
Rust is still a young language, so there isn't a ton of tooling yet, but the
69-
tools we have are really nice.
70-
71-
[Cargo](https://crates.io) is Rust's package manager, and its website contains
72-
lots of good documentation.
73-
74-
[`rustdoc`](book/documentation.html) is used to generate documentation for Rust code.
75-
7678
# FAQs
7779

7880
There are questions that are asked quite often, so we've made FAQs for them:

branches/auto/src/doc/nomicon/vec-drain.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,16 @@ impl<'a, T> Drop for Drain<'a, T> {
129129
130130
impl<T> Vec<T> {
131131
pub fn drain(&mut self) -> Drain<T> {
132-
// this is a mem::forget safety thing. If Drain is forgotten, we just
133-
// leak the whole Vec's contents. Also we need to do this eventually
134-
// anyway, so why not do it now?
135-
self.len = 0;
136-
137132
unsafe {
133+
let iter = RawValIter::new(&self);
134+
135+
// this is a mem::forget safety thing. If Drain is forgotten, we just
136+
// leak the whole Vec's contents. Also we need to do this *eventually*
137+
// anyway, so why not do it now?
138+
self.len = 0;
139+
138140
Drain {
139-
iter: RawValIter::new(&self),
141+
iter: iter,
140142
vec: PhantomData,
141143
}
142144
}

branches/auto/src/doc/nomicon/vec-final.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,16 @@ impl<T> Vec<T> {
155155
}
156156

157157
pub fn drain(&mut self) -> Drain<T> {
158-
// this is a mem::forget safety thing. If this is forgotten, we just
159-
// leak the whole Vec's contents. Also we need to do this *eventually*
160-
// anyway, so why not do it now?
161-
self.len = 0;
162158
unsafe {
159+
let iter = RawValIter::new(&self);
160+
161+
// this is a mem::forget safety thing. If Drain is forgotten, we just
162+
// leak the whole Vec's contents. Also we need to do this *eventually*
163+
// anyway, so why not do it now?
164+
self.len = 0;
165+
163166
Drain {
164-
iter: RawValIter::new(&self),
167+
iter: iter,
165168
vec: PhantomData,
166169
}
167170
}

branches/auto/src/doc/trpl/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ is the first. After this:
2424
* [Syntax and Semantics][ss] - Each bit of Rust, broken down into small chunks.
2525
* [Nightly Rust][nr] - Cutting-edge features that aren’t in stable builds yet.
2626
* [Glossary][gl] - A reference of terms used in the book.
27-
* [Academic Research][ar] - Literature that influenced Rust.
27+
* [Bibliography][bi] - Background on Rust's influences, papers about Rust.
2828

2929
[gs]: getting-started.html
3030
[lr]: learn-rust.html
3131
[er]: effective-rust.html
3232
[ss]: syntax-and-semantics.html
3333
[nr]: nightly-rust.html
3434
[gl]: glossary.html
35-
[ar]: academic-research.html
35+
[bi]: bibliography.html
3636

3737
After reading this introduction, you’ll want to dive into either ‘Learn Rust’
3838
or ‘Syntax and Semantics’, depending on your preference: ‘Learn Rust’ if you

branches/auto/src/doc/trpl/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@
6969
* [Slice Patterns](slice-patterns.md)
7070
* [Associated Constants](associated-constants.md)
7171
* [Glossary](glossary.md)
72-
* [Academic Research](academic-research.md)
72+
* [Bibliography](bibliography.md)

branches/auto/src/doc/trpl/advanced-linking.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ formal `#[link(...)]` attribute on `extern` blocks instead.
3434

3535
# Static linking
3636

37-
Static linking refers to the process of creating output that contain all
38-
required libraries and so don't need libraries installed on every system where
37+
Static linking refers to the process of creating output that contains all
38+
required libraries and so doesn't need libraries installed on every system where
3939
you want to use your compiled project. Pure-Rust dependencies are statically
4040
linked by default so you can use created binaries and libraries without
4141
installing Rust everywhere. By contrast, native libraries

0 commit comments

Comments
 (0)