Skip to content

Commit 9b550d4

Browse files
committed
---
yaml --- r: 228837 b: refs/heads/try c: 52fd69c h: refs/heads/master i: 228835: 04fdd64 v: v3
1 parent b1a5311 commit 9b550d4

File tree

108 files changed

+787
-3207
lines changed

Some content is hidden

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

108 files changed

+787
-3207
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: aca2057ed5fb7af3f8905b2bc01f72fa001c35c8
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
4-
refs/heads/try: ff6c6ce917bd6af9c5d9315708ae6be3ba0b7e91
4+
refs/heads/try: 52fd69c9332b1cddd1a778cf96ff432cfcad5beb
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/configure

Lines changed: 28 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ opt_core() {
283283
fi
284284
done
285285
else
286-
if [ -n "$META" ]
286+
if [ ! -z "$META" ]
287287
then
288288
OP="$OP=<$META>"
289289
fi
@@ -317,7 +317,7 @@ envopt() {
317317
fi
318318

319319
# If script or environment provided a value, save it.
320-
if [ -n "$VV" ]
320+
if [ ! -z "$VV" ]
321321
then
322322
putvar $V
323323
fi
@@ -767,7 +767,7 @@ probe CFG_LLDB lldb
767767
# On MacOS X, invoking `javac` pops up a dialog if the JDK is not
768768
# installed. Since `javac` is only used if `antlr4` is available,
769769
# probe for it only in this case.
770-
if [ -n "$CFG_ANTLR4" ]
770+
if [ ! -z "$CFG_ANTLR4" ]
771771
then
772772
probe CFG_JAVAC javac
773773
fi
@@ -786,14 +786,14 @@ then
786786
fi
787787
fi
788788

789-
if [ -n "$CFG_GDB" ]
789+
if [ ! -z "$CFG_GDB" ]
790790
then
791791
# Store GDB's version
792792
CFG_GDB_VERSION=$($CFG_GDB --version 2>/dev/null | head -1)
793793
putvar CFG_GDB_VERSION
794794
fi
795795

796-
if [ -n "$CFG_LLDB" ]
796+
if [ ! -z "$CFG_LLDB" ]
797797
then
798798
# Store LLDB's version
799799
CFG_LLDB_VERSION=$($CFG_LLDB --version 2>/dev/null | head -1)
@@ -819,7 +819,7 @@ step_msg "looking for target specific programs"
819819

820820
probe CFG_ADB adb
821821

822-
if [ -n "$CFG_PANDOC" ]
822+
if [ ! -z "$CFG_PANDOC" ]
823823
then
824824
# Extract "MAJOR MINOR" from Pandoc's version number
825825
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc' |
@@ -845,7 +845,7 @@ then
845845
BIN_SUF=.exe
846846
fi
847847

848-
if [ -n "$CFG_ENABLE_LOCAL_RUST" ]
848+
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
849849
then
850850
system_rustc=$(which rustc)
851851
if [ -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
@@ -930,18 +930,18 @@ fi
930930

931931
# Okay, at this point, we have made up our minds about whether we are
932932
# going to force CFG_ENABLE_CLANG or not; save the setting if so.
933-
if [ -n "$CFG_ENABLE_CLANG" ]
933+
if [ ! -z "$CFG_ENABLE_CLANG" ]
934934
then
935935
putvar CFG_ENABLE_CLANG
936936
fi
937937

938938
# Same with jemalloc. save the setting here.
939-
if [ -n "$CFG_DISABLE_JEMALLOC" ]
939+
if [ ! -z "$CFG_DISABLE_JEMALLOC" ]
940940
then
941941
putvar CFG_DISABLE_JEMALLOC
942942
fi
943943

944-
if [ -n "$CFG_LLVM_ROOT" -a -z "$CFG_DISABLE_LLVM_VERSION_CHECK" -a -e "$CFG_LLVM_ROOT/bin/llvm-config" ]
944+
if [ ! -z "$CFG_LLVM_ROOT" -a -z "$CFG_DISABLE_LLVM_VERSION_CHECK" -a -e "$CFG_LLVM_ROOT/bin/llvm-config" ]
945945
then
946946
step_msg "using custom LLVM at $CFG_LLVM_ROOT"
947947

@@ -970,7 +970,7 @@ fi
970970
# CFG_ENABLE_CLANG is set, that indicates that we are opting into
971971
# running such safeguards.
972972

973-
if [ -n "$CC" ]
973+
if [ ! -z "$CC" ]
974974
then
975975
msg "skipping compiler inference steps; using provided CC=$CC"
976976
CFG_CC="$CC"
@@ -983,7 +983,7 @@ then
983983
putvar CFG_USING_CLANG
984984
fi
985985
else
986-
if [ -n "$CFG_ENABLE_CLANG" ]
986+
if [ ! -z "$CFG_ENABLE_CLANG" ]
987987
then
988988
if [ -z "$CFG_CLANG" ]
989989
then
@@ -997,7 +997,7 @@ else
997997
fi
998998
fi
999999

1000-
if [ -n "$CFG_ENABLE_CLANG" ]
1000+
if [ ! -z "$CFG_ENABLE_CLANG" ]
10011001
then
10021002
case "$CC" in
10031003
(''|*clang)
@@ -1013,7 +1013,7 @@ then
10131013
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
10141014
fi
10151015

1016-
if [ -n "$CFG_OSX_CLANG_VERSION" ]
1016+
if [ ! -z "$CFG_OSX_CLANG_VERSION" ]
10171017
then
10181018
case $CFG_OSX_CLANG_VERSION in
10191019
(7.0*)
@@ -1042,7 +1042,7 @@ then
10421042
esac
10431043
fi
10441044

1045-
if [ -n "$CFG_ENABLE_CCACHE" ]
1045+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
10461046
then
10471047
if [ -z "$CFG_CCACHE" ]
10481048
then
@@ -1177,13 +1177,8 @@ do
11771177
# INCLUDE and LIB variables for MSVC so we can set those in the
11781178
# build system as well.
11791179
install=$(reg QUERY \
1180-
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0' \
1180+
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
11811181
-v InstallDir)
1182-
if [ -z "$install" ]; then
1183-
install=$(reg QUERY \
1184-
'HKLM\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\12.0' \
1185-
-v InstallDir)
1186-
fi
11871182
need_ok "couldn't find visual studio install root"
11881183
CFG_MSVC_ROOT=$(echo "$install" | grep InstallDir | sed 's/.*REG_SZ[ ]*//')
11891184
CFG_MSVC_ROOT=$(dirname "$CFG_MSVC_ROOT")
@@ -1204,7 +1199,7 @@ do
12041199
;;
12051200
esac
12061201
bindir="${CFG_MSVC_ROOT}/VC/bin"
1207-
if [ -n "$msvc_part" ]; then
1202+
if [ ! -z "$msvc_part" ]; then
12081203
bindir="$bindir/$msvc_part"
12091204
fi
12101205
eval CFG_MSVC_BINDIR_$bits="\"$bindir\""
@@ -1234,7 +1229,7 @@ do
12341229
esac
12351230
done
12361231

1237-
if [ -n "$CFG_PERF" ]
1232+
if [ ! -z "$CFG_PERF" ]
12381233
then
12391234
HAVE_PERF_LOGFD=`$CFG_PERF stat --log-fd 2>&1 | grep 'unknown option'`
12401235
if [ -z "$HAVE_PERF_LOGFD" ];
@@ -1344,11 +1339,11 @@ then
13441339
"${CFG_GIT}" submodule init
13451340

13461341
# Disable submodules that we're not using
1347-
if [ -n "${CFG_LLVM_ROOT}" ]; then
1342+
if [ ! -z "${CFG_LLVM_ROOT}" ]; then
13481343
msg "git: submodule deinit src/llvm"
13491344
"${CFG_GIT}" submodule deinit src/llvm
13501345
fi
1351-
if [ -n "${CFG_JEMALLOC_ROOT}" ]; then
1346+
if [ ! -z "${CFG_JEMALLOC_ROOT}" ]; then
13521347
msg "git: submodule deinit src/jemalloc"
13531348
"${CFG_GIT}" submodule deinit src/jemalloc
13541349
fi
@@ -1395,7 +1390,7 @@ do
13951390
if [ -z $CFG_LLVM_ROOT ]
13961391
then
13971392
LLVM_BUILD_DIR=${CFG_BUILD_DIR}$t/llvm
1398-
if [ -n "$CFG_DISABLE_OPTIMIZE_LLVM" ]
1393+
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]
13991394
then
14001395
LLVM_DBG_OPTS="--enable-debug-symbols --disable-optimized"
14011396
# Just use LLVM straight from its build directory to
@@ -1451,7 +1446,7 @@ do
14511446
msg "configuring LLVM for $t with cmake"
14521447

14531448
CMAKE_ARGS="-DLLVM_INCLUDE_TESTS=OFF"
1454-
if [ -n "$CFG_DISABLE_OPTIMIZE_LLVM" ]; then
1449+
if [ ! -z "$CFG_DISABLE_OPTIMIZE_LLVM" ]; then
14551450
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Debug"
14561451
else
14571452
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release"
@@ -1465,22 +1460,12 @@ do
14651460

14661461
msg "configuring LLVM with:"
14671462
msg "$CMAKE_ARGS"
1468-
case "$CFG_MSVC_ROOT" in
1469-
*14.0*)
1470-
generator="Visual Studio 14 2015"
1471-
;;
1472-
*12.0*)
1473-
generator="Visual Studio 12 2013"
1474-
;;
1475-
*)
1476-
err "can't determine generator for LLVM cmake"
1477-
;;
1478-
esac
14791463
case "$t" in
14801464
x86_64-*)
1481-
generator="$generator Win64"
1465+
generator="Visual Studio 12 2013 Win64"
14821466
;;
14831467
i686-*)
1468+
generator="Visual Studio 12 2013"
14841469
;;
14851470
*)
14861471
err "can only build LLVM for x86 platforms"
@@ -1553,7 +1538,7 @@ do
15531538

15541539
(*)
15551540
msg "inferring LLVM_CXX/CC from CXX/CC = $CXX/$CC"
1556-
if [ -n "$CFG_ENABLE_CCACHE" ]
1541+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
15571542
then
15581543
if [ -z "$CFG_CCACHE" ]
15591544
then
@@ -1687,20 +1672,20 @@ putvar CFG_MANDIR
16871672

16881673
# Avoid spurious warnings from clang by feeding it original source on
16891674
# ccache-miss rather than preprocessed input.
1690-
if [ -n "$CFG_ENABLE_CCACHE" ] && [ -n "$CFG_USING_CLANG" ]
1675+
if [ ! -z "$CFG_ENABLE_CCACHE" ] && [ ! -z "$CFG_USING_CLANG" ]
16911676
then
16921677
CFG_CCACHE_CPP2=1
16931678
putvar CFG_CCACHE_CPP2
16941679
fi
16951680

1696-
if [ -n "$CFG_ENABLE_CCACHE" ]
1681+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
16971682
then
16981683
CFG_CCACHE_BASEDIR=${CFG_SRC_DIR}
16991684
putvar CFG_CCACHE_BASEDIR
17001685
fi
17011686

17021687

1703-
if [ -n $BAD_PANDOC ]
1688+
if [ ! -z $BAD_PANDOC ]
17041689
then
17051690
CFG_PANDOC=
17061691
putvar CFG_PANDOC

branches/try/src/doc/reference.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,8 @@ always been designed to be compiled. For these reasons, this section assumes a
591591
compiler.
592592

593593
Rust's semantics obey a *phase distinction* between compile-time and
594-
run-time.[^phase-distinction] Semantic rules that have a *static
595-
interpretation* govern the success or failure of compilation, while
596-
semantic rules
594+
run-time.[^phase-distinction] Those semantic rules that have a *static
595+
interpretation* govern the success or failure of compilation. Those semantics
597596
that have a *dynamic interpretation* govern the behavior of the program at
598597
run-time.
599598

@@ -2369,8 +2368,6 @@ The currently implemented features of the reference compiler are:
23692368
internally without imposing on callers
23702369
(i.e. making them behave like function calls in
23712370
terms of encapsulation).
2372-
* - `default_type_parameter_fallback` - Allows type parameter defaults to
2373-
influence type inference.
23742371

23752372
If a feature is promoted to a language feature, then all existing programs will
23762373
start to receive compilation warnings about `#![feature]` directives which enabled

branches/try/src/doc/rust.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,6 @@ a > code {
221221
color: #428BCA;
222222
}
223223

224-
.section-header > a > code {
225-
color: #8D1A38;
226-
}
227-
228224
/* Code highlighting */
229225
pre.rust .kw { color: #8959A8; }
230226
pre.rust .kw-2, pre.rust .prelude-ty { color: #4271AE; }

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* [Iterators](iterators.md)
1717
* [Concurrency](concurrency.md)
1818
* [Error Handling](error-handling.md)
19-
* [Choosing your Guarantees](choosing-your-guarantees.md)
2019
* [FFI](ffi.md)
2120
* [Borrow and AsRef](borrow-and-asref.md)
2221
* [Release Channels](release-channels.md)

0 commit comments

Comments
 (0)