Commit Graph

81989 Commits

Author SHA1 Message Date
Alex Crichton
6c7473d024 Deny future duplication of rustc-ap-syntax
Enable the tidy check to forbid this!

Closes #53006
2018-08-09 07:13:18 -07:00
ljedrz
25a58af064 A few cleanups for rustc_target 2018-08-09 15:42:43 +02:00
memoryruins
9d2c4a3acd [nll] libtest: enable feature(nll) for bootstrap 2018-08-09 09:22:45 -04:00
memoryruins
6858bd890a [nll] libsyntax: enable feature(nll) for bootstrap 2018-08-09 09:22:33 -04:00
memoryruins
75fa16bc60 [nll] libserialize: enable feature(nll) for bootstrap 2018-08-09 09:22:08 -04:00
memoryruins
c556cff96f [nll] librustc_data_structures: enable feature(nll) for bootstrap 2018-08-09 09:21:23 -04:00
memoryruins
9207cc9bd9 [nll] librustc_allocator: enable feature(nll) for bootstrap 2018-08-09 09:21:01 -04:00
memoryruins
ed55520371 [nll] librustc: enable feature(nll) for bootstrap 2018-08-09 09:20:41 -04:00
memoryruins
26991eb8bf [nll] libprofiler_builtins: enable feature(nll) for bootstrap 2018-08-09 09:20:20 -04:00
bors
b73535f1e9 Auto merge of #53031 - michaelwoerister:cross-lto, r=alexcrichton
Apply some fixes to cross-language LTO (especially when targeting MSVC)

This PR contains a few fixes that were needed in order to get Firefox compiling with Rust/C++ cross-language ThinLTO on Windows. The commits are self-contained and should be self-explanatory.

r? @alexcrichton
2018-08-09 13:20:14 +00:00
memoryruins
bf089a1ac1 [nll] libcore: enable feature(nll) for bootstrap 2018-08-09 09:19:53 -04:00
memoryruins
d25dbc5d84 [nll] libunwind: enable feature(nll) for bootstrap 2018-08-09 06:52:12 -04:00
memoryruins
58836e8a6f [nll] libterm: enable feature(nll) for bootstrap 2018-08-09 06:51:56 -04:00
memoryruins
01c598aa0d [nll] libsyntax_pos: enable feature(nll) for bootstrap 2018-08-09 06:51:42 -04:00
memoryruins
f331401e1e [nll] librustc_target: enable feature(nll) for bootstrap 2018-08-09 06:51:13 -04:00
memoryruins
a37360c330 [nll] librustc_incremental: enable feature(nll) for bootstrap 2018-08-09 06:50:57 -04:00
memoryruins
fd4b1a73bf [nll] librustc_driver: enable feature(nll) for bootstrap 2018-08-09 06:50:40 -04:00
memoryruins
c6be5551be [nll] librustc_cratesio_shim: enable feature(nll) for bootstrap 2018-08-09 06:50:25 -04:00
memoryruins
b340f56316 [nll] librustc_apfloat: enable feature(nll) for bootstrap 2018-08-09 06:49:31 -04:00
memoryruins
7e78e7570f [nll] libpanic_unwind: enable feature(nll) for bootstrap 2018-08-09 06:49:12 -04:00
memoryruins
04bd6146c3 [nll] libpanic_abort: enable feature(nll) for bootstrap 2018-08-09 06:48:53 -04:00
memoryruins
3ed965ab58 [nll] libfmt_macros: enable feature(nll) for bootstrap 2018-08-09 06:48:10 -04:00
David Wood
31657c9953
Updated tests after rebase. 2018-08-09 12:03:20 +02:00
Ralf Jung
5ee5a7eb55 repr(transparent) 2018-08-09 11:56:01 +02:00
M Farkas-Dyck
b78201aee5 inline some short functions 2018-08-09 01:27:48 -08:00
kennytm
23601d08e6
Rollup merge of #53116 - jakllsch:netbsd-unsigned-char, r=alexcrichton
NetBSD: fix signedess of char
2018-08-09 16:58:44 +08:00
kennytm
c24ba7e4f8
Rollup merge of #53110 - Xanewok:save-analysis-remap-path, r=nrc
Account for --remap-path-prefix in save-analysis

Fixes #52549.

Didn't add a test since save-analysis is still unstable, only tested this locally. Should I add a test for that? If so, is run-make-fulldeps an appropriate format?

Session is already created with remapped working directory, so use that instead of the actual cwd.
This was the only place affected, since the rest of the paths in save-analysis are directly derived from files in spans from `sess.codemap()`, which already creates remapped ones.

r? @nrc
2018-08-09 16:58:42 +08:00
kennytm
dad5b6c554
Rollup merge of #53094 - GuillaumeGomez:automatic-expand, r=nrc
Automatically expand section if url id point to one of its component

Fixes #52517.

r? @nrc
2018-08-09 16:58:41 +08:00
kennytm
c6f55bca7f
Rollup merge of #52773 - ljedrz:unncecessary_patterns, r=nikomatsakis
Avoid unnecessary pattern matching against Option and Result
2018-08-09 16:58:39 +08:00
David Wood
255ead5faa
Fallback to 'has type' error messages rather than 'lifetime appears in type'. 2018-08-09 10:25:26 +02:00
David Wood
82b48277a2
Correctly identify named early bound regions. 2018-08-09 10:25:23 +02:00
memoryruins
034a96a081 [nll] librustc_tsan: enable feature(nll) for bootstrap 2018-08-09 04:11:06 -04:00
memoryruins
cb49252f57 [nll] librustc_traits: enable feature(nll) for bootstrap 2018-08-09 04:10:46 -04:00
memoryruins
9fcc6dab8d [nll] librustc_save_analysis: enable feature(nll) for bootstrap 2018-08-09 04:10:26 -04:00
memoryruins
03a5694c2d [nll] librustc_resolve: enable feature(nll) for bootstrap 2018-08-09 04:10:08 -04:00
memoryruins
87fb6fc6ef [nll] librustc_privacy: enable feature(nll) for bootstrap 2018-08-09 04:09:50 -04:00
memoryruins
a6b7163c74 [nll] librustc_plugin: enable feature(nll) for bootstrap 2018-08-09 04:09:29 -04:00
memoryruins
95b64188c9 [nll] librustc_passes: enable feature(nll) for bootstrap 2018-08-09 04:09:07 -04:00
memoryruins
80e8e97d93 [nll] librustc_errors: enable feature(nll) for bootstrap 2018-08-09 04:08:45 -04:00
memoryruins
742a95149f [nll] librustc_asan: enable feature(nll) for bootstrap 2018-08-09 04:08:17 -04:00
memoryruins
d2e0c782a9 [nll] libarena: enable feature(nll) for bootstrap 2018-08-09 04:07:59 -04:00
ljedrz
aab063a40e Use Cow<str> in describe_num_args 2018-08-09 09:59:13 +02:00
Michael Woerister
49972e93ff Relax the target-cpu-on-function codegen test so it just checks for presence of the attribute. 2018-08-09 09:39:02 +02:00
bors
fbb6275f4f Auto merge of #53108 - RalfJung:mutex, r=alexcrichton
clarify partially initialized Mutex issues

Using a `sys_common::mutex::Mutex` without calling `init` is dangerous, and yet there are some places that do this. I tried to find all of them and add an appropriate comment about reentrancy.

I found two places where (I think) reentrancy can actually occur, and was not able to come up with an argument for why this is okay. Someone who knows `io::lazy` and/or `sys_common::at_exit_imp` should have a careful look at this.
2018-08-09 07:30:14 +00:00
ljedrz
c7646d54dd Refactor expand_preparsed_format_args 2018-08-09 08:55:49 +02:00
memoryruins
ce7f0c483d liballoc: enable feature(nll) for bootstrap 2018-08-09 01:50:49 -04:00
memoryruins
fa1bdd696d liballoc_jemalloc: enable feature(nll) for bootstrap 2018-08-09 01:50:37 -04:00
memoryruins
1c3d20eb41 liballoc_system: enable feature(nll) for bootstrap 2018-08-09 01:50:22 -04:00
memoryruins
98d94223a5 libgraphviz: enable feature(nll) for bootstrap 2018-08-09 01:50:08 -04:00
memoryruins
f8367a3450 librustc_borrowck: enable feature(nll) for bootstrap 2018-08-09 01:49:46 -04:00