kennytm
e2d0e3f6ac
Rollup merge of #53219 - memoryruins:nll_bootstrap_3, r=nikomatsakis
...
[nll] enable feature(nll) on various crates for bootstrap: part 3
#53172
2018-08-10 01:01:33 +08:00
kennytm
62d70c9d47
Rollup merge of #53214 - memoryruins:nll_bootstrap_2, r=nikomatsakis
...
[nll] enable feature(nll) on various crates for bootstrap: part 2
#53172
2018-08-10 01:01:31 +08:00
kennytm
bb0151c6d4
Rollup merge of #53211 - memoryruins:nll_bootstrap, r=nikomatsakis
...
[nll] enable feature(nll) on various crates for bootstrap
#53172
2018-08-10 01:01:30 +08:00
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
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
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
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
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
memoryruins
72ae24640b
librustc_lint: enable feature(nll) for bootstrap
2018-08-09 01:49:25 -04:00
memoryruins
c5b557fb6a
librustc_metadata: enable feature(nll) for bootstrap
2018-08-09 01:49:07 -04:00
bors
76b69a604e
Auto merge of #53100 - VPashkov:issue-52456-improper_ctypes, r=eddyb
...
Fix improper_ctypes lint for individual foreign items
Fixes #52456 .
r? @eddyb
2018-08-09 01:38:13 +00:00
bors
80caa7f9f4
Auto merge of #53186 - mikhail-m1:master, r=nikomatsakis
...
Fixes #53119 .
Fixes #53119 .
I minimized sample little bit more, but I checked the sample from issue too.
r? @nikomatsakis
2018-08-08 23:30:12 +00:00
gnzlbg
c92db36656
update target-feature-gate.stderr output
2018-08-09 00:56:30 +02:00
bors
62e4e08f4c
Auto merge of #53163 - oli-obk:const_prop_ice, r=nikomatsakis
...
Remove an overly pedantic and wrong assertion
fixes #53157
fixes #53087
2018-08-08 20:16:25 +00:00
Niko Matsakis
e5f32effa9
add comment
2018-08-08 14:36:40 -04:00
bors
376b60da8b
Auto merge of #53192 - oli-obk:clippyup, r=kennytm
...
Update clippy submodule
r? @kennytm
fixes breakage from https://github.com/rust-lang/rust/pull/53053#issuecomment-411364171
2018-08-08 15:10:34 +00:00
bors
63fe441db8
Auto merge of #53088 - matthewjasper:closure-region-spans, r=nikomatsakis
...
[NLL] Use span of the closure args in free region errors
Also adds a note when one of the free regions is BrEnv.
In a future PR I'll change these messages to say "return requires", which should improve them a bit more.
r? @nikomatsakis
2018-08-08 12:48:32 +00:00
Oliver Schneider
dac12f1f96
Update clippy submodule
2018-08-08 13:19:30 +02:00
bors
ebe8df41d7
Auto merge of #52872 - faern:use-modern-alignment-libc, r=TimNN
...
Make IpvXAddr::new const fns and the well known addresses associated constants
Implements/fixes https://github.com/rust-lang/rust/issues/44582
I just got a PR towards libc (https://github.com/rust-lang/libc/pull/1044 ) merged. With the new feature added in that PR it is now possible to create `in6_addr` instances as consts. This enables us to finally make the constructors of the IP structs const fns and to make the localhost/unspecified addresses associated constants, as agreed in the above mentioned tracking issue.
I also added a BROADCAST constant. Personally this is the well known address I tend to need the most often.
2018-08-08 10:42:04 +00:00