Skip to content

Commit e192bc1

Browse files
committed
---
yaml --- r: 218330 b: refs/heads/tmp c: faf7302 h: refs/heads/master v: v3
1 parent cf84507 commit e192bc1

File tree

370 files changed

+11857
-14426
lines changed

Some content is hidden

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

370 files changed

+11857
-14426
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: ebf0c83cb9c6508e9564cb58337df2ad52b56430
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: 3198e1acf3301fdcfe527feb327ccd02d0e4434b
28+
refs/heads/tmp: faf73028c9afe5790e9b4d83a348d93e4a098852
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: d0fdfbfb0d34f196f52b9d15215723c4785c4afa
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*.exe
2020
*.fn
2121
*.html
22-
*.kdev4
2322
*.ky
2423
*.ll
2524
*.llvm

branches/tmp/CONTRIBUTING.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,6 @@ feature. We use the 'fork and pull' model described there.
8383

8484
Please make pull requests against the `master` branch.
8585

86-
Compiling all of `make check` can take a while. When testing your pull request,
87-
consider using one of the more specialized `make` targets to cut down on the
88-
amount of time you have to wait. You need to have built the compiler at least
89-
once before running these will work, but that’s only one full build rather than
90-
one each time.
91-
92-
$ make -j8 rustc-stage1 && make check-stage1
93-
94-
is one such example, which builds just `rustc`, and then runs the tests. If
95-
you’re adding something to the standard library, try
96-
97-
$ make -j8 check-stage1-std NO_REBUILD=1
98-
99-
This will not rebuild the compiler, but will run the tests.
100-
10186
All pull requests are reviewed by another person. We have a bot,
10287
@rust-highfive, that will automatically assign a random person to review your
10388
request.
@@ -123,10 +108,6 @@ will run all the tests on every platform we support. If it all works out,
123108

124109
[merge-queue]: http://buildbot.rust-lang.org/homu/queue/rust
125110

126-
Speaking of tests, Rust has a comprehensive test suite. More information about
127-
it can be found
128-
[here](https://github.com/rust-lang/rust-wiki-backup/blob/master/Note-testsuite.md).
129-
130111
## Writing Documentation
131112

132113
Documentation improvements are very welcome. The source of `doc.rust-lang.org`

branches/tmp/Makefile.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
# * tidy-basic - show file / line stats
6363
# * tidy-errors - show the highest rustc error code
6464
# * tidy-features - show the status of language and lib features
65-
# * rustc-stage$(stage) - Only build up to a specific stage
6665
#
6766
# Then mix in some of these environment variables to harness the
6867
# ultimate power of The Rust Build System.
@@ -91,7 +90,7 @@
9190
#
9291
# # Rust recipes for build system success
9392
#
94-
# // Modifying libstd? Use this command to run unit tests just on your change
93+
# // Modifying libstd? Use this comment to run unit tests just on your change
9594
# make check-stage1-std NO_REBUILD=1 NO_BENCH=1
9695
#
9796
# // Added a run-pass test? Use this to test running your test

branches/tmp/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Rust is a fast systems programming language that guarantees
44
memory safety and offers painless concurrency ([no data races]).
55
It does not employ a garbage collector and has minimal runtime overhead.
66

7-
This repo contains the code for the compiler (`rustc`), as well
7+
This repo contains the code for `rustc`, the Rust compiler, as well
88
as standard libraries, tools and documentation for Rust.
99

1010
[no data races]: http://blog.rust-lang.org/2015/04/10/Fearless-Concurrency.html
@@ -73,7 +73,7 @@ Read ["Installing Rust"] from [The Book].
7373
```
7474
7575
3. Run `mingw32_shell.bat` or `mingw64_shell.bat` from wherever you installed
76-
MSYS2 (i.e. `C:\msys`), depending on whether you want 32-bit or 64-bit Rust.
76+
MYSY2 (i.e. `C:\msys`), depending on whether you want 32-bit or 64-bit Rust.
7777
7878
4. Navigate to Rust's source code, configure and build it:
7979

branches/tmp/RELEASES.md

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
Version 1.2.0 (August 2015)
2-
===========================
3-
4-
Highlights
5-
----------
6-
7-
* [Parallel codegen][parcodegen] is now working again, which can substantially
8-
speed up large builds in debug mode; It also gets another ~33% speedup when
9-
bootstrapping on a 4 core machine (using 8 jobs). It's not enabled by default,
10-
but will be "in the near future"
11-
12-
13-
[parcodegen]: https://github.com/rust-lang/rust/pull/26018
14-
15-
161
Version 1.1.0 (June 2015)
172
=========================
183

@@ -21,28 +6,29 @@ Version 1.1.0 (June 2015)
216
Highlights
227
----------
238

24-
* The [`std::fs` module has been expanded][fs] to expand the set of
9+
* The [`std::fs` module has been expanded][fs-expand] to expand the set of
2510
functionality exposed:
2611
* `DirEntry` now supports optimizations like `file_type` and `metadata` which
2712
don't incur a syscall on some platforms.
2813
* A `symlink_metadata` function has been added.
2914
* The `fs::Metadata` structure now lowers to its OS counterpart, providing
3015
access to all underlying information.
31-
* The compiler now contains extended explanations of many errors. When an error
32-
with an explanation occurs the compiler suggests using the `--explain` flag
33-
to read the explanation. Error explanations are also [available online][err-index].
16+
* The compiler contains extended explanations of many errors. When it
17+
emits such an error it also suggests using the `--explain` flag to
18+
read the extended explanations, which are also [cataloged on the web
19+
site][err].
3420
* Thanks to multiple [improvements][sk] to [type checking][pre], as
3521
well as other work, the time to bootstrap the compiler decreased by
3622
32%.
3723

3824
Libraries
3925
---------
4026

41-
* The [`str::split_whitespace`] method splits a string on unicode
27+
* The `str::split_whitespace` method splits a string on unicode
4228
whitespace boundaries.
4329
* On both Windows and Unix, new extension traits provide conversion of
4430
I/O types to and from the underlying system handles. On Unix, these
45-
traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
31+
traits are [`FrowRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
4632
and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
4733
`TcpListener`, and `UpdSocket`. Further implementations for
4834
`std::process` will be stabilized later.
@@ -94,14 +80,15 @@ Misc
9480
* [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
9581
with `Drop`][drop].
9682

97-
[`str::split_whitespace`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
83+
[`split_whitespace`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
84+
[`Iterator::cloned`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cloned
9885
[`FromRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9986
[`AsRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
10087
[`std::os::unix::symlink`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
10188
[`IntoIterator`]: http://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
10289
[`From`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html
10390
[rf]: https://github.com/rust-lang/rust/pull/24491
104-
[err-index]: http://doc.rust-lang.org/error-index.html
91+
[err]: http://doc.rust-lang.org/error-index.html
10592
[sk]: https://github.com/rust-lang/rust/pull/24615
10693
[pre]: https://github.com/rust-lang/rust/pull/25323
10794
[file]: https://github.com/rust-lang/rust/pull/24598
@@ -264,6 +251,7 @@ Misc
264251
[sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
265252
[th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
266253
[send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
254+
[scoped]: http://static.rust-lang.org/doc/master/std/thread/fn.scoped.html
267255
[moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
268256
[prim-inherent]: https://github.com/rust-lang/rust/pull/23104
269257
[overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
@@ -273,10 +261,12 @@ Misc
273261
[string-pattern]: https://github.com/rust-lang/rust/pull/22466
274262
[oibit-final]: https://github.com/rust-lang/rust/pull/21689
275263
[reflect]: https://github.com/rust-lang/rust/pull/23712
264+
[debug-builder]: https://github.com/rust-lang/rfcs/blob/master/text/0640-debug-improvements.md
276265
[conversion]: https://github.com/rust-lang/rfcs/pull/529
277266
[num-traits]: https://github.com/rust-lang/rust/pull/23549
278267
[index-value]: https://github.com/rust-lang/rust/pull/23601
279268
[dropck]: https://github.com/rust-lang/rfcs/pull/769
269+
[fundamental]: https://github.com/rust-lang/rfcs/pull/1023
280270
[ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
281271
[fn-inherit]: https://github.com/rust-lang/rust/pull/23282
282272
[fn-blanket]: https://github.com/rust-lang/rust/pull/23895
@@ -379,6 +369,7 @@ Version 1.0.0-alpha.2 (February 2015)
379369
[osstr]: https://github.com/rust-lang/rust/pull/21488
380370
[osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
381371
[Self]: https://github.com/rust-lang/rust/pull/22158
372+
[ufcs]: https://github.com/rust-lang/rust/pull/21077
382373
[ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
383374
[un]: https://github.com/rust-lang/rust/pull/22256
384375

branches/tmp/configure

Lines changed: 14 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,6 @@ case $CFG_OSTYPE in
405405
CFG_OSTYPE=unknown-openbsd
406406
;;
407407

408-
NetBSD)
409-
CFG_OSTYPE=unknown-netbsd
410-
;;
411-
412408
Darwin)
413409
CFG_OSTYPE=apple-darwin
414410
;;
@@ -903,18 +899,6 @@ then
903899
fi
904900
fi
905901

906-
# If the clang isn't already enabled, check for GCC, and if it is missing, turn
907-
# on clang as a backup.
908-
if [ -z "$CFG_ENABLE_CLANG" ]
909-
then
910-
CFG_GCC_VERSION=$("$CFG_GCC" --version 2>&1)
911-
if [ $? -ne 0 ]
912-
then
913-
step_msg "GCC not installed, will try using Clang"
914-
CFG_ENABLE_CLANG=1
915-
fi
916-
fi
917-
918902
# Okay, at this point, we have made up our minds about whether we are
919903
# going to force CFG_ENABLE_CLANG or not; save the setting if so.
920904
if [ ! -z "$CFG_ENABLE_CLANG" ]
@@ -936,7 +920,7 @@ then
936920
LLVM_VERSION=$($LLVM_CONFIG --version)
937921

938922
case $LLVM_VERSION in
939-
(3.[5-7]*)
923+
(3.[5-6]*)
940924
msg "found ok version of LLVM: $LLVM_VERSION"
941925
;;
942926
(*)
@@ -1053,14 +1037,6 @@ for target_file in ${CFG_SRC_DIR}mk/cfg/*.mk; do
10531037
CFG_SUPPORTED_TARGET="${CFG_SUPPORTED_TARGET} $(basename "$target_file" .mk)"
10541038
done
10551039

1056-
# copy build-triples to host-triples so that builds are a subset of hosts
1057-
V_TEMP=""
1058-
for i in $CFG_BUILD $CFG_HOST;
1059-
do
1060-
echo "$V_TEMP" | grep -qF $i || V_TEMP="$V_TEMP${V_TEMP:+ }$i"
1061-
done
1062-
CFG_HOST=$V_TEMP
1063-
10641040
# copy host-triples to target-triples so that hosts are a subset of targets
10651041
V_TEMP=""
10661042
for i in $CFG_HOST $CFG_TARGET;
@@ -1118,7 +1094,7 @@ do
11181094
fi
11191095
;;
11201096

1121-
*-msvc)
1097+
x86_64-*-msvc)
11221098
# Currently the build system is not configured to build jemalloc
11231099
# with MSVC, so we omit this optional dependency.
11241100
step_msg "targeting MSVC, disabling jemalloc"
@@ -1158,45 +1134,22 @@ do
11581134
CFG_MSVC_ROOT=$(echo "$install" | grep InstallDir | sed 's/.*REG_SZ[ ]*//')
11591135
CFG_MSVC_ROOT=$(dirname "$CFG_MSVC_ROOT")
11601136
CFG_MSVC_ROOT=$(dirname "$CFG_MSVC_ROOT")
1161-
putvar CFG_MSVC_ROOT
1162-
1163-
case $i in
1164-
x86_64-*)
1165-
bits=x86_64
1166-
msvc_part=amd64
1167-
;;
1168-
i686-*)
1169-
bits=i386
1170-
msvc_part=
1171-
;;
1172-
*)
1173-
err "can only target x86 targets for MSVC"
1174-
;;
1175-
esac
1176-
bindir="${CFG_MSVC_ROOT}/VC/bin"
1177-
if [ ! -z "$msvc_part" ]; then
1178-
bindir="$bindir/$msvc_part"
1179-
fi
1180-
eval CFG_MSVC_BINDIR_$bits="\"$bindir\""
1181-
eval CFG_MSVC_CL_$bits="\"$bindir/cl.exe\""
1182-
eval CFG_MSVC_LIB_$bits="\"$bindir/lib.exe\""
1183-
eval CFG_MSVC_LINK_$bits="\"$bindir/link.exe\""
1137+
CFG_MSVC_CL="${CFG_MSVC_ROOT}/VC/bin/amd64/cl.exe"
1138+
CFG_MSVC_LIB="${CFG_MSVC_ROOT}/VC/bin/amd64/lib.exe"
1139+
CFG_MSVC_LINK="${CFG_MSVC_ROOT}/VC/bin/amd64/link.exe"
11841140

11851141
vcvarsall="${CFG_MSVC_ROOT}/VC/vcvarsall.bat"
1186-
include_path=$(cmd /c "\"$vcvarsall\" $msvc_part && cmd /c echo %INCLUDE%")
1142+
CFG_MSVC_INCLUDE_PATH=$(cmd /c "\"$vcvarsall\" amd64 && cmd /c echo %INCLUDE%")
11871143
need_ok "failed to learn about MSVC's INCLUDE"
1188-
lib_path=$(cmd /c "\"$vcvarsall\" $msvc_part && cmd /c echo %LIB%")
1144+
CFG_MSVC_LIB_PATH=$(cmd /c "\"$vcvarsall\" amd64 && cmd /c echo %LIB%")
11891145
need_ok "failed to learn about MSVC's LIB"
11901146

1191-
eval CFG_MSVC_INCLUDE_PATH_${bits}="\"$include_path\""
1192-
eval CFG_MSVC_LIB_PATH_${bits}="\"$lib_path\""
1193-
1194-
putvar CFG_MSVC_BINDIR_${bits}
1195-
putvar CFG_MSVC_CL_${bits}
1196-
putvar CFG_MSVC_LIB_${bits}
1197-
putvar CFG_MSVC_LINK_${bits}
1198-
putvar CFG_MSVC_INCLUDE_PATH_${bits}
1199-
putvar CFG_MSVC_LIB_PATH_${bits}
1147+
putvar CFG_MSVC_ROOT
1148+
putvar CFG_MSVC_CL
1149+
putvar CFG_MSVC_LIB
1150+
putvar CFG_MSVC_LINK
1151+
putvar CFG_MSVC_INCLUDE_PATH
1152+
putvar CFG_MSVC_LIB_PATH
12001153
;;
12011154

12021155
*)
@@ -1435,19 +1388,8 @@ do
14351388

14361389
msg "configuring LLVM with:"
14371390
msg "$CMAKE_ARGS"
1438-
case "$t" in
1439-
x86_64-*)
1440-
generator="Visual Studio 12 2013 Win64"
1441-
;;
1442-
i686-*)
1443-
generator="Visual Studio 12 2013"
1444-
;;
1445-
*)
1446-
err "can only build LLVM for x86 platforms"
1447-
;;
1448-
esac
14491391
(cd $LLVM_BUILD_DIR && "$CFG_CMAKE" $CFG_LLVM_SRC_DIR \
1450-
-G "$generator" \
1392+
-G "Visual Studio 12 2013 Win64" \
14511393
$CMAKE_ARGS)
14521394
need_ok "LLVM cmake configure failed"
14531395
fi

branches/tmp/mk/cfg/i686-pc-windows-msvc.mk

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)