kennytm
746abc3265
Rollup merge of #53082 - felixrabe:fix-doc-link-again, r=GuillaumeGomez
...
Fix doc link (again)
Similar to #52404 . The link for comparison:
- https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-sized (broken)
- https://doc.rust-lang.org/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, stable 2nd ed)
- https://doc.rust-lang.org/nightly/book/second-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2nd ed)
- https://doc.rust-lang.org/nightly/book/2018-edition/ch19-04-advanced-types.html#dynamically-sized-types-and-the-sized-trait (correct, nightly 2018 ed)
This commit is the result of (first) searching via ripgrep (0.8.1 -SIMD -AVX):
rg -l dynamically-sized-types-and-sized
and then replacing all relevant occurrences via:
find src/{libcore,test/ui} -type f -print0 | xargs -0 sed -i.bak \
s/dynamically-sized-types-and-sized/dynamically-sized-types-and-the-sized-trait/g
find src/{libcore,test/ui} -type f -name '*.bak' -print0 | xargs -0 rm
(Note: Tested on on macOS 10.13 (BSD). `sed -i.bak` should work on Linux
(GNU sed) as well, but not tested.)
2018-08-10 01:01:28 +08:00
kennytm
410f63dbb7
Rollup merge of #53217 - strake:inline, r=nagisa
...
inline some short functions
I found these were outline in binaries i link. I think they ought to be inline, considering their size.
2018-08-10 01:01:27 +08:00
kennytm
db74946803
Rollup merge of #53106 - RalfJung:ordering, r=stjepang
...
atomic ordering docs
Discussion in https://github.com/rust-lang/rfcs/pull/2503 revealed that this could be improved. I hope this helps.
2018-08-10 01:01:24 +08:00
kennytm
8188f12aaa
Rollup merge of #53183 - estebank:println-comma, r=oli-obk
...
Suggest comma when missing in macro call
When missing a comma in a macro call, suggest it, regardless of
position. When a macro call doesn't match any of the patterns, check
if the call's token stream could be missing a comma between two idents,
and if so, create a new token stream containing the comma and try to
match against the macro patterns. If successful, emit the suggestion.
This works on arbitrary macros, with no need of special support from
the macro writers.
```
error: no rules expected the token `d`
--> $DIR/missing-comma.rs:26:18
|
LL | foo!(a, b, c d, e);
| -^
| |
| help: missing comma here
```
Follow up to #52397 .
2018-08-10 01:01:22 +08:00
kennytm
7f886cf12b
Rollup merge of #53179 - gnzlbg:patch-3, r=alexcrichton
...
Whitelist wasm32 simd128 target feature
r? @alexcrichton
2018-08-10 01:01:20 +08:00
BurntPizza
c9aca02320
Don't panic on std::env::vars() when env in null.
...
Fixes #53200
2018-08-09 12:56:42 -04:00
QuietMisdreavus
0511b01506
set the syntax edition in the driver's phase 1
2018-08-09 11:46:39 -05:00
Mark Rousskov
a8e19bec37
Move span_bug and bug helper functions to util
2018-08-09 10:01:45 -06:00
Mark Rousskov
ed246fcc95
Cache ignored attributes inside ICH entirely
2018-08-09 10:00:25 -06:00
Mark Rousskov
bd6fe1e700
Move Fingerprint to data structures
2018-08-09 10:00:25 -06:00
Mark Rousskov
ac4439c5b6
Reuse Hash impls for session data structures
2018-08-09 10:00:25 -06:00
Mark Rousskov
7f138e1e55
Remove dependency on rustc::ty from code_stats
2018-08-09 10:00:25 -06:00
Mark Rousskov
dea13b4bc7
Move path2cstr to rustc_fs_util
2018-08-09 10:00:25 -06:00
Mark Rousskov
e3177c6f3f
Move rustc::util::fs into separate (new) crate
2018-08-09 10:00:25 -06:00
Mark Rousskov
bf103700c6
Move SVH structure to data structures
2018-08-09 10:00:25 -06:00
Andre Bogus
cc2503a4f4
Add individual docs for rotate_{left, right}
2018-08-09 17:10:27 +02:00
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