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
Christiaan Dirkx
e3c6e46168
Make some methods of Pin<&mut T>
unstable const
...
Make the following methods unstable const under the `const_pin` feature:
- `into_ref`
- `get_mut`
- `get_unchecked_mut`
2020-09-18 19:23:50 +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
Denis Vasilik
62e0ee1ba0
Update library/alloc/src/collections/binary_heap.rs
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-09-18 16:45:35 +02:00
Denis Vasilik
ec7225feac
Update library/alloc/src/collections/binary_heap.rs
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-09-18 16:45:23 +02:00
Denis Vasilik
2230d8d14c
Update library/alloc/src/collections/binary_heap.rs
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-09-18 16:45:13 +02:00
Bastian Kauschke
d327fa112b
initial working state
2020-09-18 16:25:25 +02:00
bors
fdc3405c20
Auto merge of #72412 - VFLashM:issue-72408-nested-closures-exponential, r=tmandry
...
Issue 72408 nested closures exponential
This fixes #72408 .
Nested closures were resulting in exponential compilation time.
This PR is enhancing asymptotic complexity, but also increasing the constant, so I would love to see perf run results.
2020-09-18 14:08:39 +00:00
Jake Goulding
9803c9b252
Update cc crate to understand aarch64-apple-darwin with clang
2020-09-18 09:22:07 -04:00
Jake Goulding
15bd2365fc
Upgrade libz-sys to 1.1.2
2020-09-18 09:18:10 -04:00
Pietro Albini
b9af3e30a9
bootstrap: move the version number to a plaintext file
...
The Rust version number is currently embedded in bootstrap's source
code, which makes it hard to update it automatically or access it
outside of ./x.py (as you'd have to parse the source code).
This commit moves the version number to a standalone plaintext file,
which makes accessing or updating it trivial.
2020-09-18 14:58:22 +02:00
Ralf Jung
0810c3ef19
support panic=abort in Miri
2020-09-18 13:15:54 +02:00
khyperia
0bc405e352
Remove DeclareMethods
2020-09-18 13:11:59 +02:00
bors
2c69266c06
Auto merge of #76837 - wesleywiser:disable_consideredequal, r=oli-obk
...
[mir-opt] Disable the `ConsideredEqual` logic in SimplifyBranchSame opt
The logic is currently broken and we need to disable it to fix a beta
regression (see #76803 )
r? `@oli-obk`
2020-09-18 10:54:14 +00:00
Denis Vasilik
49c8fcb47e
Use intra-doc links
2020-09-18 12:38:37 +02:00
Denis Vasilik
4af1b90b41
Move to intra-doc links
2020-09-18 12:38:25 +02:00
Alexis Bourget
b534d9f6e1
Fix broken link
2020-09-18 12:32:23 +02:00
Alexis Bourget
982ec0d0c9
Fix broken link
2020-09-18 11:14:36 +02:00
Alexis Bourget
bffd2111f7
Finish moving to intra doc links for std::sync
2020-09-18 11:09:36 +02:00
Tyler Mandry
3ccb1c37e6
Remove redundancy in cache key
2020-09-18 09:03:53 +00:00
Denis Vasilik
bdb039d10b
Use intra-doc links
2020-09-18 10:50:04 +02:00
Lzu Tao
b65937031d
inline inner function of inlining methods
2020-09-18 08:36:21 +00:00
Lzu Tao
53d5261c69
Move unsafe code of slice new
function of their Iterator structs
...
Init false state in Split* constructors
2020-09-18 08:36:21 +00:00
bors
953f33c5cb
Auto merge of #76854 - aDotInTheVoid:mir-opt-32-64-diff-name, r=oli-obk
...
Rename mir-opt diff tests with 32/64 bit
Now syntax highlighting should work.
I've tested that `--bless` works localy, but I'm not sure it's possible on CI
Fixes #75746
r? `@oli-obk`
2020-09-18 08:28:03 +00:00
Poliorcetics
4c92b3dc7d
Apply suggestions from code review
...
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
2020-09-18 09:52:35 +02:00
Alexis Bourget
4675a3104b
Use intra-doc links in core/src/iter when possible
2020-09-18 09:51:26 +02:00
est31
baafc71f1f
Remove unused libc feature gate
...
Libc isn't used by alloc.
And std and panic_* use libc from crates.io now,
which isn't feature gated.
2020-09-18 08:59:43 +02:00
Juan Aguilar Santillana
28cfa9730e
Simplify panic_if_treat_err_as_bug avoiding allocations
2020-09-18 05:57:01 +00:00
bors
a0925fba74
Auto merge of #76790 - ssomers:btree_slice_slasher_returns, r=Mark-Simulacrum
...
BTreeMap: avoid slices even more
Epilogue to #73971 : it seems the compiler is unable to realize that creating a slice and `get_unchecked`-ing one element is a simple fetch. So try to spell it out for the only remaining but often invoked case.
Also, the previous code doesn't seem fair game to me, using `get_unchecked` to reach beyond the end of a slice. Although the local function `slice_insert` also does that.
r? `@Mark-Simulacrum`
2020-09-18 05:47:00 +00:00
est31
2805a05154
Add bench_typed_arena_clear_100 bench
2020-09-18 05:52:45 +02:00
est31
daccd1709e
Replace loop with drop_in_place call
2020-09-18 04:49:02 +02:00
est31
5acfcceb47
Dogfood new_uninit and maybe_uninit_slice in rustc_arena
2020-09-18 04:49:02 +02:00
Lzu Tao
2818032a2d
Calculate more correct capacity in merge_attrs
...
Co-authored-by: jyn514 <joshua@yottadb.com>
2020-09-18 01:55:40 +00:00