Commit graph

96682 commits

Author SHA1 Message Date
Nathan
e1e0df8a49 Remove uses of mem::uninitialized in std::sys::cloudabi
Usages still appear in cloudabi tests and in the reentrant mutex implementation
2019-07-22 20:42:08 -04:00
Pyry Kontio
f78cd4de45 Fix building_llvm in sanity check, add swig sanity check. 2019-07-23 09:38:03 +09:00
Alex Touchet
4e02a1f7c5
Change "OSX" to "macOS" 2019-07-22 16:16:59 -07:00
Samy Kacimi
1a7127bbc4
normalize use of backticks in compiler messages for librustc_allocator
https://github.com/rust-lang/rust/issues/60532
2019-07-22 23:30:29 +02:00
bors
e649e90344 Auto merge of #62873 - Centril:rollup-ncnuelj, r=Centril
Rollup of 14 pull requests

Successful merges:

 - #62709 (Test that maplike FromIter satisfies uniqueness)
 - #62713 (Stabilize <*mut _>::cast and <*const _>::cast)
 - #62746 ( do not use assume_init in std::io)
 - #62787 (Fix typo in src/libstd/net/udp.rs doc comment)
 - #62788 (normalize use of backticks in compiler messages for libcore/ptr)
 - #62799 (use const array repeat expressions for uninit_array)
 - #62810 (normalize use of backticks in compiler messages for librustc_lint)
 - #62812 (normalize use of backticks in compiler messages for librustc_metadata)
 - #62832 (normalize use of backticks in compiler messages for librustc_incremental)
 - #62845 (read: fix doc comment)
 - #62853 (normalize use of backticks in compiler messages for librustc/hir)
 - #62854 (Fix typo in Unicode character name)
 - #62858 (Change wrong variable name.)
 - #62870 (fix lexing of comments with many \r)

Failed merges:

r? @ghost
2019-07-22 17:08:25 +00:00
Brian Cain
4b339688b5 add support for hexagon-unknown-linux-musl 2019-07-22 09:44:58 -05:00
Ralf Jung
91967816c3 account for non-drop-glue types 2019-07-22 15:32:58 +02:00
Mazdak Farrokhzad
376382aff3
Rollup merge of #62870 - matklad:issue-62863, r=petrochenkov
fix lexing of comments with many \r

closes #62863
2019-07-22 15:32:29 +02:00
Mazdak Farrokhzad
e178a1e1b3
Rollup merge of #62858 - Rosto75:master, r=jonas-schievink
Change wrong variable name.

r? @steveklabnik
2019-07-22 15:32:27 +02:00
Mazdak Farrokhzad
d75151c546
Rollup merge of #62854 - andrewda:fix-unicode-name, r=petrochenkov
Fix typo in Unicode character name

There's a small typo in the Unicode character definitions: "Latin Epigraphic Letter Dideways" should be "Latin Epigraphic Letter Sideways I" (see [here](https://www.compart.com/en/unicode/U+A7F7)).
2019-07-22 15:32:26 +02:00
Mazdak Farrokhzad
16f585ca1c
Rollup merge of #62853 - fakenine:normalize_use_of_backticks_compiler_messages_p13, r=Centril
normalize use of backticks in compiler messages for librustc/hir

https://github.com/rust-lang/rust/issues/60532
2019-07-22 15:32:24 +02:00
Mazdak Farrokhzad
b94e59cc41
Rollup merge of #62845 - RalfJung:read, r=rkruppe
read: fix doc comment

No idea how that happened...
2019-07-22 15:32:23 +02:00
Mazdak Farrokhzad
1289677821
Rollup merge of #62832 - fakenine:normalize_use_of_backticks_compiler_messages_p12, r=Centril
normalize use of backticks in compiler messages for librustc_incremental

https://github.com/rust-lang/rust/issues/60532
2019-07-22 15:32:22 +02:00
Mazdak Farrokhzad
063268b2bc
Rollup merge of #62812 - fakenine:normalize_use_of_backticks_compiler_messages_p11, r=GuillaumeGomez
normalize use of backticks in compiler messages for librustc_metadata

https://github.com/rust-lang/rust/issues/60532
2019-07-22 15:32:20 +02:00
Mazdak Farrokhzad
17ddfbe49c
Rollup merge of #62810 - fakenine:normalize_use_of_backticks_compiler_messages_p10, r=Centril
normalize use of backticks in compiler messages for librustc_lint

https://github.com/rust-lang/rust/issues/60532
2019-07-22 15:32:18 +02:00
Mazdak Farrokhzad
5a20745c96
Rollup merge of #62799 - RalfJung:uninit-array, r=Centril
use const array repeat expressions for uninit_array

With a first implementation of https://github.com/rust-lang/rust/issues/49147 having landed, we can make this macro nicer and phase it out with the next bootstrap bump.

However, to make this work, we have to mark `MaybeUninit::uninit()` as promotable. I do feel uneasy about promoting stuff involving uninitialized memory, but OTOH no *operation* on `MaybeUninit` is promotable, so maybe this is okay?

r? @oli-obk @eddyb
2019-07-22 15:32:17 +02:00
Mazdak Farrokhzad
7dafdd21b1
Rollup merge of #62788 - fakenine:normalize_use_of_backticks_compiler_messages_p9, r=Centril
normalize use of backticks in compiler messages for libcore/ptr

https://github.com/rust-lang/rust/issues/60532
2019-07-22 15:32:15 +02:00
Mazdak Farrokhzad
002f604bc9
Rollup merge of #62787 - Indy2222:master, r=Mark-Simulacrum
Fix typo in src/libstd/net/udp.rs doc comment

Affect is usually used as a verb, effect as a verb.
2019-07-22 15:32:14 +02:00
Aleksey Kladov
27b703dd40 add rustc_private as a proper language feature gate
At the moment, `rustc_private` as a (library) feature exists by
accident: `char::is_xid_start`, `char::is_xid_continue` methods in
libcore define it.
2019-07-22 16:32:13 +03:00
Mazdak Farrokhzad
1d7faafe47
Rollup merge of #62746 - RalfJung:deprecated, r=KodrAus
do not use assume_init in std::io

Cc https://github.com/rust-lang/rust/issues/62397
2019-07-22 15:32:12 +02:00
Mazdak Farrokhzad
2567af67a6
Rollup merge of #62713 - SimonSapin:cast, r=Centril
Stabilize <*mut _>::cast and <*const _>::cast

Fixes #60602.

FCP: https://github.com/rust-lang/rust/issues/60602#issuecomment-511146402
2019-07-22 15:32:11 +02:00
Mazdak Farrokhzad
0de90c67dc
Rollup merge of #62709 - nhynes:test-maplike-fromiter, r=cuviper
Test that maplike FromIter satisfies uniqueness

This PR adds a simple assertion to the `HashMap` and `HashSet` tests to ensure that uniqueness is satisfied when `FromIter`ing. This is useful for people who want to test their custom type against the Map/Set interfaces since they'll copy the tests wholesale but possibly miss this bug (where _they_ = _me_).
2019-07-22 15:32:09 +02:00
Aleksey Kladov
647bf96b79 fix lexing of comments with many \r
closes #62863
2019-07-22 15:39:06 +03:00
lqd
e16bede3f5 fix tidy 2019-07-22 12:46:55 +02:00
lqd
c0eab36bce Bless output of test nll/loan_ends_mid_block_pair.rs for Polonius, again
Fixing assignments to projections made the Polonius output exactly the same as the NLL one.
2019-07-22 12:46:55 +02:00
lqd
c7f9a71d78 issue-46589 passes in Polonius and fails in NLL, duplicate it and manually check each outcome 2019-07-22 12:46:55 +02:00
lqd
770129c280 Add test to check that assignments to projections do not kill too many loans 2019-07-22 12:46:54 +02:00
lqd
d41e002111 Add test checking various assignments are accepted in Polonius 2019-07-22 12:46:54 +02:00
lqd
2f3e36f51a Polonius: generate killed facts for assignments to projections 2019-07-22 12:46:53 +02:00
lqd
823ab42e66 Bless output of test unboxed-closures/unboxed-closures-failed-recursive-fn-1.rs for Polonius 2019-07-22 11:36:47 +02:00
lqd
9e0fb6fad2 Make both polonius loans tests check-pass 2019-07-22 11:36:46 +02:00
lqd
606f7984e7 Rename test so that both "kills-loans" tests match names 2019-07-22 11:36:46 +02:00
lqd
9bd9b0d9bf Add test extracted from rand, checking that StorageDead kills loans
Like "call-kills-loans", Polonius didn't know about some `killed` facts.
2019-07-22 11:36:46 +02:00
lqd
40e6b025b2 Bless output of test nll/return-ref-mut-issue-46557.rs for Polonius 2019-07-22 11:36:45 +02:00
lqd
ed1625f29e Ignore test hrtb/issue-30786.rs in Polonius compare mode 2019-07-22 11:36:45 +02:00
lqd
0bd2b32358 Bless output of test borrowck/promote-ref-mut-in-let-issue-46557.rs for Polonius 2019-07-22 11:36:44 +02:00
lqd
6d9a4f9783 Polonius facts: kill loans on Call terminators and StorageDead 2019-07-22 11:36:42 +02:00
bors
4bc1ce7bdb Auto merge of #62797 - petrochenkov:run-pass-hole, r=Mark-Simulacrum
tests: Require run-pass tests without annotations to run successfully again

Fixes https://github.com/rust-lang/rust/issues/62775 (regression from https://github.com/rust-lang/rust/pull/61755)
2019-07-22 08:55:29 +00:00
Vadim Petrochenkov
39d144e808 Fix or ignore regressed tests 2019-07-22 11:50:21 +03:00
Vadim Petrochenkov
14f5160423 tests: Require run-pass tests without annotations to run successfully again 2019-07-22 11:50:21 +03:00
Ralf Jung
a7b9246540 weasle, weasle 2019-07-22 10:33:11 +02:00
lqd
9a82f52e59 Create a dedicated polonius test folder 2019-07-22 10:32:41 +02:00
lqd
08c25b5122 Bless output of test dropck/dropck_trait_cycle_checked.rs for Polonius 2019-07-22 10:32:41 +02:00
lqd
7db61e78c0 Bless output of test borrowck/two-phase-surprise-no-conflict.rs for Polonius 2019-07-22 10:32:40 +02:00
lqd
6fe52928a3 Bless output of test borrowck/borrowck-escaping-closure-error-2.rs for Polonius 2019-07-22 10:32:40 +02:00
lqd
292d5c18c9 Bless output of test generator/ref-escapes-but-not-over-yield.rs for Polonius 2019-07-22 10:32:40 +02:00
lqd
c5a1bc1e5c Bless output of test nll/get_default.rs for Polonius
2 of the 3 errors are "fixed by Polonius" 🎉
2019-07-22 10:32:39 +02:00
lqd
6a7c15ed25 Bless output of test consts/promote_const_let.rs for Polonius 2019-07-22 10:32:39 +02:00
lqd
94101046ff Bless output of test nll/loan_ends_mid_block_pair.rs for Polonius 2019-07-22 10:32:39 +02:00
lqd
2824db1388 Bless output of test save-analysis/emit-notifications.rs for Polonius 2019-07-22 10:32:39 +02:00