Commit Graph

92400 Commits

Author SHA1 Message Date
bors
bf843eb9c2 Auto merge of #60071 - RalfJung:miri, r=oli-obk
update miri

Fixes https://github.com/rust-lang/rust/issues/60040
2019-04-18 11:55:13 +00:00
Ralf Jung
29eed6b931 make liballoc internal test suite mostly pass in Miri 2019-04-18 13:37:14 +02:00
Ralf Jung
fc0cfdbc2a update miri 2019-04-18 11:05:10 +02:00
bors
e577e49b9f Auto merge of #60058 - varkor:const-generics-ty-refactor, r=cramertj
Make const parameters enforce no variance constraints

Fixes https://github.com/rust-lang/rust/issues/60047. Also includes some minor const refactoring for convenience.
2019-04-18 08:58:45 +00:00
bors
be1dbaffed Auto merge of #60048 - estebank:issue-54954, r=sanxiyn
Fix ICE on const evaluation of const method

Fix #54954.
2019-04-18 06:00:06 +00:00
Taiki Endo
e28bce7a51 Update stdsimd 2019-04-18 14:51:11 +09:00
Taiki Endo
360432f1e8 libcore => 2018 2019-04-18 14:47:35 +09:00
Jan Nils Ferner
379c5412ef
Simplify the returning of a Result a bit 2019-04-18 07:33:31 +02:00
bors
fb1b222f04 Auto merge of #60051 - estebank:fn-sugg, r=davidtwco
Do not mention missing `PartialOrd` impl when involving uncalled fns
2019-04-18 03:06:17 +00:00
Esteban Küber
1e99b2ec9d Give custom error for E0277 on ? error case 2019-04-17 19:50:50 -07:00
Esteban Küber
007b40be01 Point at try ? on errors affecting the err match arm of the desugared code 2019-04-17 18:30:26 -07:00
Santiago Pastorino
0a386baa5f Make PlaceProjectionsIter a proper iterator 2019-04-18 03:04:57 +02:00
tyler
365a48a8bf whitelist rtm x86 cpu feature 2019-04-17 17:10:24 -07:00
Esteban Küber
84af684b48 review comment: add extra doc 2019-04-17 16:42:52 -07:00
varkor
318a10e906 Add a test for unused const parameters 2019-04-18 00:30:50 +01:00
varkor
15033a9ba7 Const parameters should impose no variance constraints 2019-04-18 00:30:50 +01:00
varkor
3b7dd97e26 Add a FIXME to collector 2019-04-18 00:30:50 +01:00
varkor
a759e2cc12 Add own_requires_monomorphization 2019-04-18 00:30:50 +01:00
topecongiro
ca19ffe13f Update rustfmt to 1.2.1 2019-04-18 07:46:16 +09:00
bors
9387927ae2 Auto merge of #60054 - Centril:rollup-o40xxaa, r=Centril
Rollup of 4 pull requests

Successful merges:

 - #59908 (Re-export core::str::{EscapeDebug, EscapeDefault, EscapeUnicode} in std)
 - #59984 (Remove collection-specific `with_capacity` documentation from `std::collections`)
 - #60036 (Remove nrc from toolstate pings)
 - #60037 (Resolve inconsistency in error messages between "parameter" and "variable".)

Failed merges:

r? @ghost
2019-04-17 22:24:11 +00:00
Mazdak Farrokhzad
42b3cf107d
Rollup merge of #60037 - eddyb:actually-its-param, r=estebank
Resolve inconsistency in error messages between "parameter" and "variable".

The inconsistency was introduced in 104fe1c4db (#33619), when a label saying `type variable` was added to an error with a message talking about `type parameters`.
Given that `parameter` is far more prevalent when referring to generics in the context of Rust, IMO it should be that in both the message and the label.

r? @nikomatsakis or @estebank
2019-04-18 00:23:40 +02:00
Mazdak Farrokhzad
4664a50089
Rollup merge of #60036 - rust-lang:nrc-patch-1, r=Xanewok
Remove nrc from toolstate pings

🙉
2019-04-18 00:23:39 +02:00
Mazdak Farrokhzad
43985d965a
Rollup merge of #59984 - gluyas:collections-with_capacity-doc-fix, r=rkruppe
Remove collection-specific `with_capacity` documentation from `std::collections`

Fixes #59931

The style of `std::collections` module doc is very much a beginner friendly guide, and documenting niche, collection-specific behaviour feels out of place, if not brittle.

The note about `VecDeque` is outdated (see issue), and while `Vec` probably won't change its guarantees any time soon, the users who are interested in its allocation properties will find that in its own documentation.
2019-04-18 00:23:38 +02:00
Mazdak Farrokhzad
a20438773b
Rollup merge of #59908 - lzutao:str_escape, r=SimonSapin
Re-export core::str::{EscapeDebug, EscapeDefault, EscapeUnicode} in std

cc #59893
2019-04-18 00:23:36 +02:00
varkor
98f38b28a2 Correct E0392 diagnostic 2019-04-17 22:41:30 +01:00
Esteban Küber
8f77a035a4 Do not mention missing PartialOrd impl when involving uncalled fns 2019-04-17 14:37:52 -07:00
Yuki OKUSHI
a1d2f7222c Rename module 2019-04-18 06:27:30 +09:00
Yuki OKUSHI
3ec0219432 Remove unnecessary condition 2019-04-18 06:22:48 +09:00
Yuki OKUSHI
53084ff92e Rename diagnositc_list into error_codes 2019-04-18 06:21:30 +09:00
Yuki OKUSHI
c97b2589ec Rename files in doc 2019-04-18 06:20:07 +09:00
bors
3c3d3c1777 Auto merge of #59527 - matklad:sized-index, r=Centril
Add test checking that Index<T: ?Sized> works

I've noticed that we have an `Idx: ?Sized` bound on the **index** in the `Index`, which seems strange given that we accept index by value. My guess is that it was meant to be removed in https://github.com/rust-lang/rust/pull/23601, but was overlooked.

If I remove this bound, `./x.py src/libstd/ src/libcore/` passes, which means at least that this is not covered by test.

I think there's three things we can do here:

* run crater with the bound removed to check if there are any regressions, and merge this, to be consistent with other operator traits
* run crater, get regressions, write a test for this with a note that "hey, we tried to fix it, its unfixable"
* decide, in the light of by-value DSTs, that this is a feature rather than a bug, and add a test

cc @rust-lang/libs

EDIT: the forth alternative is that there exist a genuine reason why this is the case, but I failed to see it :D
2019-04-17 19:18:51 +00:00
Esteban Küber
d56c82074b Fix ICE on const evaluation of const method 2019-04-17 12:00:35 -07:00
Saleem Jaffer
a2f8269d0c making adjust_span a closure 2019-04-18 00:10:45 +05:30
Santiago Pastorino
b461740f03 Make iterate take a FnOnce with PlaceBase and PlaceProjectionIter 2019-04-17 19:44:17 +02:00
Santiago Pastorino
0326f0a803 Place::iterate do not take an accumulator anymore, hide that in a private fn 2019-04-17 19:44:17 +02:00
Santiago Pastorino
53fa32fe50 Place::unroll -> Place::iterate 2019-04-17 19:44:17 +02:00
Santiago Pastorino
66fe4ff7d5 Move unroll_place to Place::unroll 2019-04-17 19:44:17 +02:00
bors
8260e96760 Auto merge of #60013 - NieDzejkob:fix-16bit-usize, r=sanxiyn
Fix the max value of usize on 16-bit platforms
2019-04-17 16:23:25 +00:00
bors
6ed6f1461d Auto merge of #60034 - rasendubi:fix-comments, r=Centril
Small comments fix

- Fix comments around test harness generation
- Promote regular comments to rustdoc comments
2019-04-17 13:26:29 +00:00
Aleksey Kladov
cc3abc4d27 add a test for unsized index 2019-04-17 15:31:52 +03:00
Saleem Jaffer
999ee0190f code review fixes 2019-04-17 17:58:33 +05:30
Eduard-Mihai Burtescu
5f7055988b Resolve inconsistency in error messages between "parameter" and "variable". 2019-04-17 13:25:07 +03:00
Nick Cameron
dbbf87583b
Remove nrc from toolstate pings 2019-04-17 22:07:13 +12:00
bors
efe2f32a6b Auto merge of #60030 - Centril:rollup-3d0t24t, r=Centril
Rollup of 5 pull requests

Successful merges:

 - #59128 (Emit ansi color codes in the `rendered` field of json diagnostics)
 - #59646 (const fn: Improve wording)
 - #59986 (Miri: refactor new allocation tagging)
 - #60003 (LLD is not supported on Darwin)
 - #60018 (Miri now supports entropy, but is still slow)

Failed merges:

r? @ghost
2019-04-17 10:03:02 +00:00
Yuki OKUSHI
b9599d1210 Rename filename 2019-04-17 18:40:45 +09:00
Yuki OKUSHI
9ad56e3b94 Rename modules 2019-04-17 18:21:34 +09:00
Yuki OKUSHI
90821add81 Rename error_reporting to diagnostics 2019-04-17 18:21:17 +09:00
Yuki OKUSHI
5f3b8d0883 Rename diagnostics to error_codes 2019-04-17 18:19:14 +09:00
Alexey Shmalko
56c0125568
Promote regular comments to rustdoc comments 2019-04-17 12:03:39 +03:00
Alexey Shmalko
7bf33f00bf
Fix comments around test harness generation 2019-04-17 12:02:04 +03:00