Skip to content

Commit 56016cb

Browse files
committed
resolved upstream merge conflicts
2 parents 6a78c0a + 866a713 commit 56016cb

File tree

4,336 files changed

+121966
-99252
lines changed

Some content is hidden

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

4,336 files changed

+121966
-99252
lines changed

.gitattributes

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
*.cpp rust
55
*.h rust
66
*.rs rust
7+
*.fixed linguist-language=Rust
78
src/etc/installer/gfx/* binary
89
*.woff binary
910
src/vendor/** -text
10-
Cargo.lock -merge
11+
Cargo.lock -merge linguist-generated=false

.gitignore

+12-9
Original file line numberDiff line numberDiff line change
@@ -74,27 +74,30 @@ __pycache__/
7474
/obj/
7575
/rt/
7676
/rustllvm/
77-
/src/libstd_unicode/DerivedCoreProperties.txt
78-
/src/libstd_unicode/DerivedNormalizationProps.txt
79-
/src/libstd_unicode/PropList.txt
80-
/src/libstd_unicode/ReadMe.txt
81-
/src/libstd_unicode/Scripts.txt
82-
/src/libstd_unicode/SpecialCasing.txt
83-
/src/libstd_unicode/UnicodeData.txt
77+
/src/libcore/unicode/DerivedCoreProperties.txt
78+
/src/libcore/unicode/DerivedNormalizationProps.txt
79+
/src/libcore/unicode/PropList.txt
80+
/src/libcore/unicode/ReadMe.txt
81+
/src/libcore/unicode/Scripts.txt
82+
/src/libcore/unicode/SpecialCasing.txt
83+
/src/libcore/unicode/UnicodeData.txt
8484
/stage[0-9]+/
8585
/target
8686
target/
8787
/test/
8888
/tmp/
89+
tags
90+
tags.*
8991
TAGS
90-
TAGS.emacs
91-
TAGS.vi
92+
TAGS.*
9293
\#*
9394
\#*\#
9495
config.mk
9596
config.stamp
9697
keywords.md
9798
lexer.ml
99+
mir_dump
100+
Session.vim
98101
src/etc/dl
99102
tmp.*.rs
100103
version.md

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@
5353
[submodule "src/tools/lld"]
5454
path = src/tools/lld
5555
url = https://github.com/rust-lang/lld.git
56+
[submodule "src/libbacktrace"]
57+
path = src/libbacktrace
58+
url = https://github.com/rust-lang-nursery/libbacktrace

.mailmap

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Carol Willing <carolcode@willingconsulting.com>
5151
Chris C Cerami <chrisccerami@users.noreply.github.com> Chris C Cerami <chrisccerami@gmail.com>
5252
Chris Pressey <cpressey@gmail.com>
5353
Chris Thorn <chris@thorn.co> Chris Thorn <thorn@thoughtbot.com>
54+
Chris Vittal <christopher.vittal@gmail.com> Christopher Vittal <christopher.vittal@gmail.com>
5455
Clark Gaebel <cg.wowus.cg@gmail.com> <cgaebel@mozilla.com>
5556
Clinton Ryan <clint.ryan3@gmail.com>
5657
Corey Richardson <corey@octayn.net> Elaine "See More" Nemo <corey@octayn.net>

.travis.yml

+35-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ sudo: required
33
dist: trusty
44
services:
55
- docker
6+
addons:
7+
apt:
8+
packages:
9+
- gdb
610

711
git:
812
depth: 2
@@ -12,7 +16,7 @@ matrix:
1216
fast_finish: true
1317
include:
1418
# Images used in testing PR and try-build should be run first.
15-
- env: IMAGE=x86_64-gnu-llvm-3.9 RUST_BACKTRACE=1
19+
- env: IMAGE=x86_64-gnu-llvm-5.0 RUST_BACKTRACE=1
1620
if: type = pull_request OR branch = auto
1721

1822
- env: IMAGE=dist-x86_64-linux DEPLOY=1
@@ -169,7 +173,7 @@ matrix:
169173
- env: IMAGE=x86_64-gnu-aux
170174
if: branch = auto
171175
- env: IMAGE=x86_64-gnu-tools
172-
if: branch = auto
176+
if: branch = auto OR (type = pull_request AND commit_message =~ /(?i:^update.*\b(rls|rustfmt|clippy|miri)\b)/)
173177
- env: IMAGE=x86_64-gnu-debug
174178
if: branch = auto
175179
- env: IMAGE=x86_64-gnu-nopt
@@ -197,7 +201,7 @@ env:
197201
# AWS_SECRET_ACCESS_KEY=...
198202
- secure: "j96XxTVOSUf4s4r4htIxn/fvIa5DWbMgLqWl7r8z2QfgUwscmkMXAwXuFNc7s7bGTpV/+CgDiMFFM6BAFLGKutytIF6oA02s9b+usQYnM0th7YQ2AIgm9GtMTJCJp4AoyfFmh8F2faUICBZlfVLUJ34udHEe35vOklix+0k4WDo="
199203
# TOOLSTATE_REPO_ACCESS_TOKEN=...
200-
- secure: "cFh8thThqEJLC98XKI5pfqflUzOlxsYPRW20AWRaYOOgYHPTiGWypTXiPbGSKaeAXTZoOA+DpQtEmefc0U6lt9dHc7a/MIaK6isFurjlnKYiLOeTruzyu1z7PWCeZ/jKXsU2RK/88DBtlNwfMdaMIeuKj14IVfpepPPL71ETbuk="
204+
- secure: "ESfcXqv4N2VMhqi2iIyw6da9VrsA78I4iR1asouCaq4hzTTrkB4WNRrfURy6xg72gQ4nMhtRJbB0/2jmc9Cu1+g2CzXtyiL223aJ5CKrXdcvbitopQSDfp07dMWm+UED+hNFEanpErKAeU/6FM3A+J+60PMk8MCF1h9tqNRISJw="
201205

202206
before_install:
203207
# We'll use the AWS cli to download/upload cached docker layers, so install
@@ -230,7 +234,11 @@ install:
230234
travis_retry curl -fo /usr/local/bin/sccache https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2018-04-02-sccache-x86_64-apple-darwin &&
231235
chmod +x /usr/local/bin/sccache &&
232236
travis_retry curl -fo /usr/local/bin/stamp https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror/2017-03-17-stamp-x86_64-apple-darwin &&
233-
chmod +x /usr/local/bin/stamp
237+
chmod +x /usr/local/bin/stamp &&
238+
travis_retry curl -f http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-apple-darwin.tar.xz | tar xJf - &&
239+
export CC=`pwd`/clang+llvm-6.0.0-x86_64-apple-darwin/bin/clang &&
240+
export CXX=`pwd`/clang+llvm-6.0.0-x86_64-apple-darwin/bin/clang++ &&
241+
export AR=ar
234242
;;
235243
esac
236244

@@ -245,6 +253,8 @@ before_script:
245253
export RUN_SCRIPT="$RUN_SCRIPT && src/ci/run.sh";
246254
else
247255
export RUN_SCRIPT="$RUN_SCRIPT && src/ci/docker/run.sh $IMAGE";
256+
# Enable core dump on Linux.
257+
sudo sh -c 'echo "/checkout/obj/cores/core.%p.%E" > /proc/sys/kernel/core_pattern';
248258
fi
249259
250260
# Log time information from this machine and an external machine for insight into possible
@@ -270,6 +280,8 @@ after_failure:
270280
271281
# Random attempt at debugging currently. Just poking around in here to see if
272282
# anything shows up.
283+
284+
# Dump backtrace for macOS
273285
- ls -lat $HOME/Library/Logs/DiagnosticReports/
274286
- find $HOME/Library/Logs/DiagnosticReports
275287
-type f
@@ -280,6 +292,25 @@ after_failure:
280292
-exec head -750 {} \;
281293
-exec echo travis_fold":"end:crashlog \; || true
282294

295+
# Dump backtrace for Linux
296+
- ln -s . checkout &&
297+
for CORE in obj/cores/core.*; do
298+
EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|');
299+
if [ -f "$EXE" ]; then
300+
printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE";
301+
gdb -q -c "$CORE" "$EXE"
302+
-iex 'set auto-load off'
303+
-iex 'dir src/'
304+
-iex 'set sysroot .'
305+
-ex bt
306+
-ex q;
307+
echo travis_fold":"end:crashlog;
308+
fi;
309+
done || true
310+
311+
# see #50887
312+
- cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
313+
283314
# attempt to debug anything killed by the oom killer on linux, just to see if
284315
# it happened
285316
- dmesg | grep -i kill
@@ -297,7 +328,6 @@ before_deploy:
297328
rm -rf obj/build/dist/doc &&
298329
cp -r obj/build/dist/* deploy/$TRAVIS_COMMIT;
299330
fi
300-
- travis_retry gem update --system
301331
- ls -la deploy/$TRAVIS_COMMIT
302332

303333
deploy:

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ always work, and sometimes it's hard to know what to search for, so consider thi
4848
extra credit. We won't mind if you accidentally file a duplicate report.
4949

5050
Similarly, to help others who encountered the bug find your issue,
51-
consider filing an issue with with a descriptive title, which contains information that might be unique to it.
51+
consider filing an issue with a descriptive title, which contains information that might be unique to it.
5252
This can be the language or compiler feature used, the conditions that trigger the bug,
5353
or part of the error message if there is any.
5454
An example could be: **"impossible case reached" on lifetime inference for impl Trait in return position**.
@@ -142,7 +142,7 @@ file. If you still have a `config.mk` file in your directory - from
142142
### Building
143143
[building]: #building
144144

145-
A default configuration shall use around 3.5 GB of disk space, whereas building a debug configuration may require more than 30 GB.
145+
A default configuration requires around 3.5 GB of disk space, whereas building a debug configuration may require more than 30 GB.
146146

147147
Dependencies
148148
- [build dependencies](README.md#building-from-source)

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Read ["Installation"] from [The Book].
3838
3. Build and install:
3939

4040
```sh
41+
$ git submodule update --init --recursive --progress
4142
$ ./x.py build && sudo ./x.py install
4243
```
4344

@@ -119,7 +120,7 @@ shell with:
119120
> python x.py build
120121
```
121122

122-
Currently building Rust only works with some known versions of Visual Studio. If
123+
Currently, building Rust only works with some known versions of Visual Studio. If
123124
you have a more recent version installed the build system doesn't understand
124125
then you may need to force rustbuild to use an older version. This can be done
125126
by manually calling the appropriate vcvars file before running the bootstrap.
@@ -133,7 +134,7 @@ python x.py build
133134
[specifying-an-abi]: #specifying-an-abi
134135

135136
Each specific ABI can also be used from either environment (for example, using
136-
the GNU ABI in powershell) by using an explicit build triple. The available
137+
the GNU ABI in PowerShell) by using an explicit build triple. The available
137138
Windows build triples are:
138139
- GNU ABI (using GCC)
139140
- `i686-pc-windows-gnu`
@@ -179,7 +180,7 @@ the ABI used. I.e., if the ABI was `x86_64-pc-windows-msvc`, the directory will
179180
[notes]: #notes
180181

181182
Since the Rust compiler is written in Rust, it must be built by a
182-
precompiled "snapshot" version of itself (made in an earlier state of
183+
precompiled "snapshot" version of itself (made in an earlier stage of
183184
development). As such, source builds require a connection to the Internet, to
184185
fetch snapshots, and an OS that can execute the available snapshot binaries.
185186

@@ -224,13 +225,16 @@ variety of channels on Mozilla's IRC network, irc.mozilla.org. The
224225
most popular channel is [#rust], a venue for general discussion about
225226
Rust. And a good place to ask for help would be [#rust-beginners].
226227

227-
Also, the [rustc guide] might be a good place to start if you want to
228-
find out how various parts of the compiler work.
228+
The [rustc guide] might be a good place to start if you want to find out how
229+
various parts of the compiler work.
230+
231+
Also, you may find the [rustdocs for the compiler itself][rustdocs] useful.
229232

230233
[IRC]: https://en.wikipedia.org/wiki/Internet_Relay_Chat
231234
[#rust]: irc://irc.mozilla.org/rust
232235
[#rust-beginners]: irc://irc.mozilla.org/rust-beginners
233236
[rustc guide]: https://rust-lang-nursery.github.io/rustc-guide/about-this-guide.html
237+
[rustdocs]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc/
234238

235239
## License
236240
[license]: #license

0 commit comments

Comments
 (0)