Mazdak Farrokhzad
4b21e20f8e
Rollup merge of #62169 - Zoxc:store-query-results, r=eddyb
...
Derive which queries to save using the proc macro
Based on https://github.com/rust-lang/rust/pull/62166 .
r? @eddyb
2019-07-05 13:53:02 +02:00
Mazdak Farrokhzad
1d45156866
Rollup merge of #62150 - alex:mem-uninit-refactor, r=RalfJung
...
Implement mem::{zeroed,uninitialized} in terms of MaybeUninit.
Refs #62061
r? @oli-obk
2019-07-05 13:53:00 +02:00
Mazdak Farrokhzad
0f92eb8a4a
Rollup merge of #62123 - jeremystucki:needless_lifetimes_std, r=alexcrichton
...
Remove needless lifetimes (std)
Split from #62039
2019-07-05 13:52:58 +02:00
Eduard-Mihai Burtescu
050a71b570
rustc_target: avoid negative register counts in the SysV x86_64 ABI.
2019-07-05 13:24:25 +03:00
bors
f119bf2761
Auto merge of #62099 - Mark-Simulacrum:syntax-print-clean-2, r=eddyb
...
Remove io::Result from syntax::print
Since we're now writing directly to the vector, there's no need to
thread results through the whole printing infrastructure
2019-07-05 06:55:48 +00:00
Ralf Jung
50510e4491
remove Scalar::is_null_ptr
...
Miri does not need it any more and it is otherwise unused
2019-07-05 08:44:19 +02:00
bors
baab1914ec
Auto merge of #62376 - Mark-Simulacrum:1.38-nightly, r=alexcrichton
...
Switch master to 1.38
2019-07-05 03:33:03 +00:00
Mark Rousskov
007d87f171
Permit use of mem::uninitialized via allow(deprecated)
2019-07-04 21:01:35 -04:00
Nicholas Nethercote
87b103d4a9
Add a "total" measurement to -Ztime-passes.
...
This is useful for getting the total compilation time at the end.
To do this, the patch changes `print_time_passes_entry` to not increment
the depth, which means that `print_time_passes_entry_internal` is no
longer needed.
2019-07-05 08:19:48 +10:00
Nicholas Nethercote
90419d36bd
Remove solve_nll_region_constraints
measurements from -Ztime-passes
output.
...
Because it pollutes the output with hundreds or thousands of
uninteresting lines for which the time duration is always(?) 0.000s.
2019-07-05 08:19:43 +10:00
bors
4ca7a349da
Auto merge of #62153 - alexcrichton:parallel-compress, r=Mark-Simulacrum
...
Update the `rust-installer` submodule
This pulls in a commit which uses parallel xz encoding which should
hopefully help shave some time off the dist builders which spend an
inordinate amount of time compressing this data.
2019-07-04 22:14:08 +00:00
Mark Brooks
f4b30f4bae
Update README.md
2019-07-04 17:35:26 -04:00
Matthew Jasper
1b7ffe5300
Break out of the correct number of scopes in loops
...
We were incorrectly breaking out of one too many drop scopes when
generating MIR for loops and breakable blocks, resulting in use after
free and associated borrow checker warnings.
This wasn't noticed because the scope that we're breaking out of twice
is only used for temporaries that are created for adjustments applied to
the loop. Since loops generally propagate coercions to the `break`
expressions, the only case we see this is when the type of the loop is a
smart pointer to a trait object.
2019-07-04 21:53:46 +01:00
Matthew Jasper
61ddf5e85c
Create async version of the dynamic-drop test
2019-07-04 20:23:21 +01:00
Alex Crichton
2fb2e00f20
Update the rust-installer
submodule
...
This pulls in a commit which uses parallel xz encoding which should
hopefully help shave some time off the dist builders which spend an
inordinate amount of time compressing this data.
2019-07-04 11:59:09 -07:00
bors
24a9bcbb7c
Auto merge of #61392 - Zoxc:single-interner, r=eddyb
...
Use a single CtxtInterners
Builds on https://github.com/rust-lang/rust/pull/57214
r? @eddyb
2019-07-04 18:44:49 +00:00
Aaron Hill
779308a5e1
Improve error span for async type inference error
...
Fixes #62382
Previously, we would point at the spawn of the 'await' expression,
instead of the actual expression with an unknown type.
2019-07-04 14:22:47 -04:00
Paweł Romanowski
7f035baaf7
Fix a typo in Write::write_vectored docs
2019-07-04 18:44:34 +02:00
Mark Rousskov
8a7dded1a2
Switch master to 1.38
2019-07-04 11:26:57 -04:00
Wesley Wiser
12672e2053
Add test for ICE #62375
...
Fixes #62375
2019-07-04 10:49:24 -04:00
Alex Gaynor
e4f250e405
Implement mem::{zeroed,uninitialized} in terms of MaybeUninit.
...
Refs #62061
2019-07-04 09:33:15 -04:00
Wim Looman
55bd2140a2
Add tracking issue for Box::into_pin
2019-07-04 12:57:34 +02:00
ljedrz
a6030ff699
infer: fix a Region-related debug message
2019-07-04 12:53:12 +02:00
ljedrz
675bfb6d16
fix a dep_graph doc regarding type_of_item
2019-07-04 12:53:12 +02:00
ljedrz
01e0d83336
infer::error_reporting: adjust 2 debug messages
2019-07-04 12:53:12 +02:00
ljedrz
c6131b23ae
rename hir::map::opt_local_def_id*
2019-07-04 12:53:12 +02:00
ljedrz
37d7e1f22a
rename hir::map::local_def_id_from_hir_id to local_def_id
2019-07-04 12:53:12 +02:00
ljedrz
4f7ba515c2
rename hir::map::local_def_id to local_def_id_from_node_id
2019-07-04 12:29:26 +02:00
ljedrz
7987719dbe
remove FIXMEs for functions that won't go away
2019-07-04 12:29:26 +02:00
Ralf Jung
ceb496cf59
improve validity error range printing for singleton ranges
2019-07-04 10:47:23 +02:00
Ralf Jung
d9d6b3bb28
turns out that dangling pointer branch is dead code; remove it and improve the error that actually gets shown a bit
2019-07-04 10:47:23 +02:00
Ralf Jung
317c6ac129
use get_size_and_align to test if an allocation is live
2019-07-04 10:45:31 +02:00
Jeremy Stucki
fc67e5774d
Add missing lifetime specifier
...
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-07-04 10:42:24 +02:00
Ralf Jung
52e6f859f1
organize methods a bit better
2019-07-04 10:39:05 +02:00
Ralf Jung
956a3ef3bb
more inlining
2019-07-04 10:39:05 +02:00
Ralf Jung
842bbd2764
make Memory::get_fn take a Scalar like most of the Memory API surface
2019-07-04 10:38:54 +02:00
Ralf Jung
b4be08a666
fix for tidy
2019-07-04 10:38:54 +02:00
Ralf Jung
486720f080
fix determinig the size of foreign static allocations
2019-07-04 10:38:54 +02:00
Ralf Jung
5612feb513
add machine hook to handle calls to 'extra' function values
2019-07-04 10:38:54 +02:00
Ralf Jung
1297a274a3
Add basic support for "other" kinds of values for function pointers, determined by the machine instance.
...
So far, however, calling such a function will fail.
2019-07-04 10:38:54 +02:00
Ralf Jung
127610b7c4
Go back to just passing MemoryExtra to the machine-level allocation hooks
...
This is needed to avoid doing unnecessary global alloc_map lookups
2019-07-04 10:31:13 +02:00
Ralf Jung
8ad28cd2cb
Machine: make self-like parameters come first
2019-07-04 10:10:08 +02:00
Mazdak Farrokhzad
54527db7b0
ptr::{read,write}_unaligned: use no_run and reword slightly.
2019-07-04 09:54:37 +02:00
Christian Poveda
e45bbaf48c
Fix merge conflicts
2019-07-04 01:45:29 -05:00
Aleksey Kladov
3e362a4800
make unwrap_or_abort non-generic again
2019-07-04 09:12:33 +03:00
Aleksey Kladov
3035a05a74
remove unused mk_sp_and_raw
2019-07-04 09:12:33 +03:00
Aleksey Kladov
8bea334a26
don't rely on spans when checking tokens for jointness
2019-07-04 09:12:24 +03:00
Aleksey Kladov
1c6eb19d2f
slightly comment lexer API
2019-07-04 09:08:45 +03:00
Aleksey Kladov
30fa99e5b8
move constructors to top
2019-07-04 09:08:45 +03:00
Aleksey Kladov
601bad86b2
cleanup lexer constructors
2019-07-04 09:08:45 +03:00