Alex Crichton
7df9ad3d07
ci: Bump time limit of tools builder on PRs
...
This should give it enough time to finish instead of being killed after
an hour.
2019-07-16 08:25:01 -07:00
bors
02785dabad
Auto merge of #62704 - Mark-Simulacrum:rollup-oi94s2j, r=Mark-Simulacrum
...
Rollup of 14 pull requests
Successful merges:
- #62103 (Add debug assertions to write_bytes and copy*)
- #62405 (Remove never_type feature requirement for exhaustive patterns)
- #62491 (Fix Pin urls in Option documentation)
- #62533 (Add missing links for CannotReallocInPlace type)
- #62634 (Less unsafe in the array example of MaybeUninit docs)
- #62639 (Make VaListImpl<'f> invariant over the 'f lifetime)
- #62646 (Tweak wording in feature gate errors)
- #62662 (add spaces in front of trait requirements in libcore/cell.rs)
- #62668 (Fix #62660 )
- #62673 (miri validation: better error messages for dangling references)
- #62680 (Actually call `visit_block_entry` in `DataflowResultsConsumer`)
- #62685 (Add info about undefined behavior to as_ref suggestions)
- #62689 (Fix typo in RawWaker::new documentation)
- #62698 (SGX target: don't pretend to be GNU/Linux to LLVM)
Failed merges:
r? @ghost
2019-07-16 05:03:20 +00:00
Mark Rousskov
da0c8feba4
Rollup merge of #62698 - jethrogb:jb/sgx-llvm-target, r=alexcrichton
...
SGX target: don't pretend to be GNU/Linux to LLVM
See https://github.com/rust-lang/rust/pull/62592 & https://github.com/rust-lang-nursery/compiler-builtins/issues/303
r? @alexcrichton
2019-07-15 19:55:16 -04:00
Mark Rousskov
ba3deeb01a
Rollup merge of #62689 - 0e4ef622:patch-1, r=Xanewok
...
Fix typo in RawWaker::new documentation
poiner -> pointer
2019-07-15 19:55:15 -04:00
Mark Rousskov
40a74438ad
Rollup merge of #62685 - nathanwhit:as_ref_suggest_fix, r=estebank
...
Add info about undefined behavior to as_ref suggestions
Fixes #61786 . A very small fix, but suggestions on wording/content are welcomed.
2019-07-15 19:55:14 -04:00
Mark Rousskov
83ead58917
Rollup merge of #62680 - ecstatic-morse:fix-dataflow-results-consumer, r=matthewjasper
...
Actually call `visit_block_entry` in `DataflowResultsConsumer`
This fixes a trivial bug in `DataflowResultsConsumer`: `visit_block_entry` is never called when visiting dataflow results.
A previous version of #62547 used this API and included this fix, but it has since switched to `DataflowResultsCursor` making this commit irrelevant.
2019-07-15 19:55:12 -04:00
Mark Rousskov
879c610557
Rollup merge of #62673 - RalfJung:validity-msg, r=oli-obk
...
miri validation: better error messages for dangling references
Cc @oli-obk
2019-07-15 19:55:11 -04:00
Mark Rousskov
f9576a6fce
Rollup merge of #62668 - goodmanjonathan:fix-62660, r=estebank
...
Fix #62660
If the explicitly given type of a `self` parameter fails to parse correctly, we need to propagate the error rather than dropping it and causing an ICE.
Fixes #62660 .
2019-07-15 19:55:10 -04:00
Mark Rousskov
aa480100b3
Rollup merge of #62662 - DutchGhost:fix_space, r=sfackler
...
add spaces in front of trait requirements in libcore/cell.rs
Adds spaces before trait requirements in `libcore/cell.rs`.
2019-07-15 19:55:08 -04:00
Mark Rousskov
4efdff7dbb
Rollup merge of #62646 - estebank:wording, r=petrochenkov
...
Tweak wording in feature gate errors
2019-07-15 19:55:07 -04:00
Mark Rousskov
ee8194002e
Rollup merge of #62639 - immunant:invariant_valistimpl, r=eddyb
...
Make VaListImpl<'f> invariant over the 'f lifetime
After doing some research on variance and going back to look at `VaList` and `VaListImpl`, I realized that `VaList<'a, 'f>` is invariant over the `'f` lifetime (and covariant over `'a`), but `VaListImpl<'f>` isn't invariant but probably should be. This patch makes `VaListImpl<'f>` invariant over `'f`.
r? @eddyb
cc @dlrobertson
2019-07-15 19:55:06 -04:00
Mark Rousskov
caf10b5ffe
Rollup merge of #62634 - llogiq:uninit-array-docs, r=RalfJung
...
Less unsafe in the array example of MaybeUninit docs
I believe this is an acceptable way to initialize elements of `[MaybeUninit<T>; _]` arrays. Miri agrees. Conceptually, we are working at the array level, above the `MaybeUninit`, and as we are replacing it wholesale, this should pose no problem to soundness. And the code is easier to read.
r? @RalfJung
2019-07-15 19:55:04 -04:00
Mark Rousskov
64ceba73af
Rollup merge of #62533 - GuillaumeGomez:missing-urls-CannotReallocInPlace, r=QuietMisdreavus
...
Add missing links for CannotReallocInPlace type
r? @QuietMisdreavus
2019-07-15 19:55:03 -04:00
Mark Rousskov
d6f0c0c47d
Rollup merge of #62491 - GuillaumeGomez:fix-pin-urls-for-option, r=QuietMisdreavus
...
Fix Pin urls in Option documentation
Fixes the following situation:
![Screenshot from 2019-07-08 13-24-59](https://user-images.githubusercontent.com/3050060/60806822-55dfdc00-a184-11e9-9ee3-279e82fc92bd.png )
r? @QuietMisdreavus
2019-07-15 19:55:01 -04:00
Mark Rousskov
99e7328d13
Rollup merge of #62405 - hellow554:patch-1, r=varkor
...
Remove never_type feature requirement for exhaustive patterns
I **think** this resolves #51221
At least for me, it doesn't ICE anymore and all tests are still passing, so LGTM
2019-07-15 19:55:00 -04:00
Mark Rousskov
f940617b8e
Rollup merge of #62103 - RalfJung:debug-assert, r=alexcrichton
...
Add debug assertions to write_bytes and copy*
Looks like @nitnelave went MIA in https://github.com/rust-lang/rust/pull/58783 , so I am re-submitting their PR, tweaked just a bit. I took care to preserve commit authorship.
Cc https://github.com/rust-lang/rust/issues/53871
2019-07-15 19:54:58 -04:00
Jethro Beekman
35c248f6f0
SGX target: don't pretend to be GNU/Linux to LLVM
2019-07-15 11:23:39 -07:00
bors
4b65a86eba
Auto merge of #62687 - gnzlbg:stdarch, r=alexcrichton
...
Update stdsimd to stdarch
The stdsimd repository no longer lives in `rust-lang-nursery/stdsimd` but now lives in `rust-lang/stdarch` instead. This PR updates the stdsimd submodule to the stdarch master branch.
2019-07-15 16:00:48 +00:00
0e4ef622
04cb314ab9
Fix typo in RawWaker::new documentation
...
poiner -> pointer
2019-07-15 10:03:53 -05:00
Ralf Jung
85d76a1b48
bump compiler_builtins
2019-07-15 16:58:07 +02:00
Ralf Jung
6e8e18e3fc
ignore some codegen tests in debug mode
2019-07-15 16:56:43 +02:00
Valentin Tolmer
009c4a7efe
Add debug assertions to write_bytes and copy*
2019-07-15 16:56:43 +02:00
gnzlbg
d2c489a272
Update stdarch
2019-07-15 16:29:12 +02:00
bors
92b0f52584
Auto merge of #62667 - petrochenkov:printattr2, r=Mark-Simulacrum
...
pprust: Improve pretty-printing of delimited token groups
The commit "Do not convert attributes into `MetaItem`s for printing" fixes https://github.com/rust-lang/rust/issues/62628 .
Other commits fix regressions from abandoning `MetaItem`s, and make formatting for attributes, macro calls, macro definitions and other delimited token groups better and more consistent.
r? @Mark-Simulacrum
2019-07-15 12:29:53 +00:00
gnzlbg
677cf3de3a
Add rtm and f16c features to libcore
2019-07-15 14:05:39 +02:00
gnzlbg
77c14a5c5f
Update the stdarch submodule
2019-07-15 14:05:28 +02:00
Vadim Petrochenkov
0cdd18d0a7
pprust: Support macro
macros
2019-07-15 12:42:07 +03:00
Vadim Petrochenkov
a2a1cd1864
pprust: Fix formatting regressions from the previous commits
...
Fix some remaining cases of bad formatting
Update some failing tests
2019-07-15 12:42:07 +03:00
Vadim Petrochenkov
75896011dc
pprust: Do not convert attributes into MetaItem
s for printing
...
Fixes https://github.com/rust-lang/rust/issues/62628
2019-07-15 12:42:07 +03:00
Vadim Petrochenkov
160c40bc88
pprust: Remove the box from print_tts
...
Wrap the whole attribute into a box instead
2019-07-15 12:42:07 +03:00
Vadim Petrochenkov
11585b598c
pprust: Use print_mac_common
for delimited token groups
2019-07-15 12:42:07 +03:00
Vadim Petrochenkov
23c5c1bfe7
pprust: Use print_mac_common
for attributes
2019-07-15 12:42:07 +03:00
Vadim Petrochenkov
500b00127b
pprust: Use print_mac_common
for macro_rules
definitions
2019-07-15 12:42:07 +03:00
Vadim Petrochenkov
65a714a6a0
pprust: Move some methods to the PrintState
trait
...
So that path and macro argument printing code can be shared
2019-07-15 12:42:07 +03:00
bors
5480b47d7f
Auto merge of #62629 - matthewjasper:cleanup-borrowck-errors, r=petrochenkov
...
Cleanup borrowck errors
This removes some of the unnecessary code that allowed sharing error reporting between two borrow checkers.
closes #59193
2019-07-15 09:05:18 +00:00
bors
9bb855cda0
Auto merge of #62674 - RalfJung:miri-abi, r=eddyb
...
RustIntrinsic and PlatformIntrinsic are also the same ABI as Rust
r? @eddyb
2019-07-15 05:40:41 +00:00
nathanwhit
c221e93fcd
Add info about undefined behavior to as_ref suggestions
2019-07-14 23:05:03 -04:00
bors
e452e2929d
Auto merge of #62670 - estebank:extern-fn-with-body, r=petrochenkov
...
Detect `fn` with a body in an `extern` block
Fix #62109 .
2019-07-15 02:13:55 +00:00
Andrei Homescu
0c981e0a8a
Make VaListImpl<'f> invariant over the 'f lifetime
2019-07-14 18:14:15 -07:00
bors
d82fd9ecd3
Auto merge of #62643 - estebank:parse-recovery-type-errs, r=petrochenkov
...
Do not emit type errors after parse error in last statement of block
When recovering from a parse error inside a block, do not emit type
errors generating on that block's recovered return expression.
Fix #57383 .
2019-07-14 22:51:05 +00:00
Dylan MacKenzie
2ce227dcc6
Actually call visit_block_entry
in DataflowResultsConsumer
...
Previously, this callback was never actually called.
2019-07-14 13:45:43 -07:00
Matthew Jasper
9709b73561
pub(crate)
-> crate
...
The borrow checker code is already using `crate` extensively, so prefer
being consistent with it.
2019-07-14 20:22:20 +01:00
Matthew Jasper
abfd4d1e55
Move suggest_ref_mut into rustc_mir::borrow_check
2019-07-14 20:22:19 +01:00
Matthew Jasper
2cc2b942cf
Remove BorrowckErrors trait
...
Its methods are now inherent methods of `MirBorrowckCtxt`
2019-07-14 20:22:19 +01:00
Matthew Jasper
37a99038d0
Remove rustc_mir::borrowck_errors::Origin
2019-07-14 20:20:50 +01:00
Matthew Jasper
2975c01747
Remove unused BorrowckErrors methods
2019-07-14 20:19:16 +01:00
bors
83e4eed16e
Auto merge of #62638 - estebank:issue-62554, r=petrochenkov
...
Use snippet instead of pprinting statement
Fix #62554 .
2019-07-14 17:29:17 +00:00
bors
85a360e0ea
Auto merge of #62610 - Stargateur:fix-miri-error-cstring-into_inner, r=RalfJung
...
Fix miri error in into_inner() of CString
Fix #62553
I choice to not transmute because I think it's more unsafe and in case the structure change this code should always work.
r? @RalfJung
2019-07-14 13:52:40 +00:00
Andre Bogus
cb3aa4ce2c
Less unsafe in the array example of MaybeUninit docs
2019-07-14 13:32:14 +02:00
Ralf Jung
6c293d8101
remove outdated comment
2019-07-14 12:23:52 +02:00