Mara Bos
15eb638dc9
Add tracking issue number for string_drain_as_str.
2020-09-19 08:23:23 +02:00
Mara Bos
1bfe5efe8f
Add tracking issue number for int_bits_const.
2020-09-19 08:14:41 +02:00
Mara Bos
1e2dba1e7c
Use T::BITS
instead of size_of::<T> * 8
.
2020-09-19 06:54:42 +02:00
Mara Bos
5c30a16fa0
Add example/test to <int types>::BITS.
2020-09-19 06:50:45 +02:00
Mara Bos
3f68ae47df
Add BITS
associated constant to all integer types.
2020-09-19 06:50:45 +02:00
bors
ac19c3bda1
Auto merge of #76856 - jonas-schievink:dist-rustc-src, r=Mark-Simulacrum
...
Distribute rustc sources as part of `rustc-dev`
They can be used to provide IDE features when working on rustc plugins/backends/etc without having to locate a separate Rust checkout.
r? `@Mark-Simulacrum`
2020-09-19 04:21:11 +00:00
bors
a2c82df1f5
Auto merge of #76838 - est31:dogfood_uninit_features, r=oli-obk
...
Dogfood new_uninit and maybe_uninit_slice in rustc_arena
Dogfoods a few cool `MaybeUninit` related features in the compiler's rustc_arena crate.
Split off from #76821
r? `@oli-obk`
2020-09-19 02:21:19 +00:00
bors
c6ab8e5fe0
Auto merge of #76787 - lzutao:slice_iters_new, r=lcnr
...
Using <Iter>::new instead of exposing internal fields
As requested in https://github.com/rust-lang/rust/pull/76311#discussion_r487685126
2020-09-18 23:38:17 +00:00
bors
bbc677480d
Auto merge of #76782 - lzutao:rd-cap, r=jyn514
...
Specialize merge_attrs in good case
Just a non-important micro-optimization.
r? `@jyn514`
2020-09-18 21:31:08 +00:00
Jonas Schievink
2f9271b14c
Clarify FIXME
2020-09-18 21:23:01 +02:00
Jonas Schievink
ffd9445812
Return Place
by value
2020-09-18 21:23:01 +02:00
Jonas Schievink
682de94e31
Move inner items outside
2020-09-18 21:23:01 +02:00
Jonas Schievink
cd5d7201ad
Fix rebase fallout
2020-09-18 21:23:01 +02:00
Jonas Schievink
7af964fecf
Limit block count
2020-09-18 21:23:01 +02:00
Jonas Schievink
5728834448
Fix rebase fallout
2020-09-18 21:23:01 +02:00
Jonas Schievink
484db5b08a
Properly inherit conflicts when merging locals
2020-09-18 21:23:01 +02:00
Jonas Schievink
934634eacc
More logging
2020-09-18 21:23:01 +02:00
Jonas Schievink
88538adf9a
Record intra-statement/terminator conflicts
...
Some MIR statements and terminators have an (undocumented...) invariant
that some of their input and outputs must not overlap. This records
conflicts between locals used in these positions.
2020-09-18 21:23:01 +02:00
Jonas Schievink
ddd6930b54
perf: bail out when there's >500 candidate locals
2020-09-18 21:23:01 +02:00
Jonas Schievink
ab26fb140c
perf: only calculate conflicts for candidates
2020-09-18 21:23:01 +02:00
Jonas Schievink
665a98d21f
Fix dest-prop mir-opt tests
2020-09-18 21:23:00 +02:00
Jonas Schievink
402f863d8a
perf: walk liveness backwards in Conflicts::build
2020-09-18 21:23:00 +02:00
Jonas Schievink
7dbc7f76e1
Add a few dest-prop MIR tests
2020-09-18 21:23:00 +02:00
Jonas Schievink
812d4bbc8d
Fix dataflow assert errors
2020-09-18 21:23:00 +02:00
Jonas Schievink
8a3e2b78bb
Bless mir-opt tests
2020-09-18 21:23:00 +02:00
Jonas Schievink
8a7b1c3894
Make nrvo-simple set mir-opt-level=1
...
The additional copies are due to the lack of copy propagation
2020-09-18 21:23:00 +02:00
Jonas Schievink
1649895385
simplify_try: clean up test
2020-09-18 21:23:00 +02:00
Jonas Schievink
43ad8e4260
simplify_try: print dest_prop diff and bless
...
The new diff is to convince me that this is correct and nothing funky
is going on.
2020-09-18 21:23:00 +02:00
Jonas Schievink
78ff69ba10
Implement a destination propagation pass
2020-09-18 21:23:00 +02:00
bors
2cbc570e58
Auto merge of #76884 - Mark-Simulacrum:fix-macos-ci, r=pietroalbini
...
Add host triples to target lists
This PR is primarily intended to fix https://github.com/rust-lang/rustup/issues/2494 , which is the second commit. That bug was introduced by #76415 , and incompletely fixed by #76639 . (#76639 added host triples, which gave us compilers, but missed that we also need documentation and other target-only things). However, it also removes duplicate macOS CI builders.
r? `@pietroalbini`
2020-09-18 19:13:02 +00:00
Bastian Kauschke
925cd26162
don't take TyCtxt
by reference
2020-09-18 20:49:25 +02:00
Matthias Krüger
40dddd3305
use matches!() macro for simple if let conditions
2020-09-18 20:28:35 +02:00
Guillaume Gomez
28588e5df1
Add missing examples on HashSet iter types
2020-09-18 20:09:31 +02:00
bors
9f8ac718f4
Auto merge of #76575 - lcnr:abstract-const, r=oli-obk
...
compare generic constants using `AbstractConst`s
This is a MVP of rust-lang/compiler-team#340. The changes in this PR should only be relevant if `feature(const_evaluatable_checked)` is enabled.
~~currently based on top of #76559 , so blocked on that.~~
r? `@oli-obk` cc `@varkor` `@eddyb`
2020-09-18 16:59:50 +00:00
Aaron Hill
6a96aea36a
Wrap recursive predicate evaluation with ensure_sufficient_stack
...
I haven't been able to come up with a minimized test case for #76770 ,
but this fixes a stack overflow in rustc as well.
2020-09-18 12:24:42 -04:00
Mark Rousskov
d0dff8f873
Make sure we build target-only things (e.g., docs) for host platforms too
2020-09-18 12:00:53 -04:00
Mark Rousskov
15adc2ee83
Remove duplicate macOS builders
2020-09-18 12:00:40 -04:00
Bastian Kauschke
b7641209d7
add const-evaluatable_checked
check back in
2020-09-18 17:36:11 +02:00
Bastian Kauschke
09e6254496
review, small cleanup
2020-09-18 17:11:34 +02:00
Bastian Kauschke
1b275d08ad
document const_evaluatable
2020-09-18 17:11:34 +02:00
Bastian Kauschke
7fff155d2a
remove allow(warnings)
2020-09-18 17:11:34 +02:00
Bastian Kauschke
30ff1ef3d0
support const_evaluatable_checked across crate boundaries
2020-09-18 17:11:34 +02:00
Bastian Kauschke
82ebbd7d6b
add test for let-bindings
2020-09-18 17:11:34 +02:00
Bastian Kauschke
c7d16df1d8
add function calls
2020-09-18 17:11:34 +02:00
Bastian Kauschke
d1294e0ce2
allow unary operations and ignore StorageLive/Dead stmts
2020-09-18 17:11:34 +02:00
Bastian Kauschke
5a277822a5
use newtype_index for abstract_const::NodeId
2020-09-18 17:11:34 +02:00
Bastian Kauschke
f24d532749
refactor AbstractConstBuilder
2020-09-18 17:11:34 +02:00
Bastian Kauschke
c3a772f55f
use abstract consts when unifying ConstKind::Unevaluated
2020-09-18 17:11:34 +02:00
qlcom
18ce4c1cfc
README.md: Remove prompts from code blocks
2020-09-18 21:08:48 +06:00
Denis Vasilik
719c40cb5a
Update library/alloc/src/collections/binary_heap.rs
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-09-18 16:45:44 +02:00