Steve Klabnik
d7b3f5c6ae
update various stdlib docs
2018-11-21 06:50:17 -05:00
Tobias Bieniek
e538a4a7de
core/benches/num: Add from_str/from_str_radix()
benchmarks
2018-11-21 11:48:15 +01:00
Jethro Beekman
9e2e57511f
Add x86_64-fortanix-unknown-sgx target to the compiler
2018-11-21 14:20:32 +05:30
bors
289ad6e992
Auto merge of #52591 - eddyb:functional-snakes, r=oli-obk
...
rustc: remove {FxHash,Node,DefId,HirId,ItemLocal}{Map,Set} "constructor" fns.
These are cruft left over from a time when `Foo::default()` didn't "just work".
2018-11-21 08:08:13 +00:00
Eduard-Mihai Burtescu
7683180be5
rustc: implement and use Default on more types.
2018-11-21 08:11:50 +02:00
Eduard-Mihai Burtescu
da622a3796
rustc: remove {FxHash,Node,DefId,HirId,ItemLocal}{Map,Set} "constructor" fns.
2018-11-21 07:27:02 +02:00
Sergio Benitez
09e7051b7e
Add unstable Literal::subspan().
2018-11-20 21:17:20 -08:00
bors
780658a464
Auto merge of #56032 - petrochenkov:stabecip, r=nikomatsakis
...
Stabilize `extern_crate_item_prelude`
Closes https://github.com/rust-lang/rust/issues/55599
2018-11-21 02:30:35 +00:00
Steve Klabnik
57b7d55591
fix more links
2018-11-20 21:25:48 -05:00
Steve Klabnik
0579ef0166
fix rustbuild to build all the books
2018-11-20 21:25:48 -05:00
Steve Klabnik
240a55ce50
update books
2018-11-20 21:22:31 -05:00
Vadim Petrochenkov
1e4cf740cf
resolve: Make "empty import canaries" invisible from other crates
2018-11-21 03:59:25 +03:00
Alex Crichton
25d0418bd7
ci: Download clang/lldb from tarballs
...
Hopefully will speed up CI slightly!
2018-11-20 15:56:58 -08:00
Vadim Petrochenkov
d4934c748f
Add a couple more tests
2018-11-21 01:28:07 +03:00
Vadim Petrochenkov
1af682a557
Stabilize extern_crate_item_prelude
2018-11-21 01:27:23 +03:00
bors
f1e2fa8f04
Auto merge of #56111 - nrc:update, r=kennytm
...
Update RLS and Rustfmt
Re-opening https://github.com/rust-lang/rust/pull/56061
@bors: r=kennytm p=2
2018-11-20 21:06:55 +00:00
Nick Cameron
595bea6b33
Update RLS and Rustfmt
2018-11-21 08:30:47 +13:00
bors
c4cf115056
Auto merge of #55720 - RalfJung:const-eval-raw, r=oli-obk
...
Make const_eval_raw query return just an AllocId
r? @oli-obk
2018-11-20 18:08:12 +00:00
Simon Sapin
a4279a07e2
Capitalize
2018-11-20 18:22:40 +01:00
Simon Sapin
8a5bbd9a4e
Add tracking issue for unfold and successors
2018-11-20 18:22:40 +01:00
Simon Sapin
641c4909e4
Add std::iter::successors
2018-11-20 18:22:40 +01:00
Simon Sapin
22228186c0
Copy
is best avoided on iterators
2018-11-20 18:22:40 +01:00
Simon Sapin
544ad37753
Unfold<St, F>: Debug without F: Debug
2018-11-20 18:22:40 +01:00
Simon Sapin
48aae09e9f
Add std::iter::unfold
2018-11-20 18:22:40 +01:00
bjorn3
9ce7b11e7c
Remove incorrect doc comment in rustc_mir::monomorphize::item
2018-11-20 17:32:46 +01:00
bjorn3
8a0909df79
Remove incorrect doc comment
2018-11-20 17:30:29 +01:00
bors
3991bfbbc2
Auto merge of #55663 - varkor:must_use-traits, r=estebank
...
Allow #[must_use] on traits
Addresses https://github.com/rust-lang/rust/issues/55506 , but we'll probably want to add it to some library traits like `Iterator` before the issue is considered fixed. Fixes https://github.com/rust-lang/rust/issues/51560 .
`#[must_use]` is already permitted on traits, with no effect, so this seems like a bug fix, but I might be overlooking something. This currently warns for `impl Trait` or `dyn Trait` when the `Trait` is `#[must_use]` (although I don't think the latter is currently possible, so it's simply future-proofed).
2018-11-20 15:15:53 +00:00
Axary
88d60941da
improve error note
2018-11-20 14:43:16 +01:00
Olivier Goffart
4c21f66c1d
Add comments and rename a local variable
2018-11-20 13:24:41 +01:00
bors
15e6613281
Auto merge of #55678 - Aaronepower:master, r=Mark-Simulacrum
...
Updated RELEASES.md for 1.31.0
[Rendered](https://github.com/Aaronepower/rust/blob/master/RELEASES.md )
r? @Mark-Simulacrum
cc @rust-lang/release
2018-11-20 12:09:36 +00:00
Olivier Goffart
86d41350c7
Fix invalid bitcast taking bool out of a union represented as a scalar
...
As reported in https://github.com/rust-lang/rust/pull/54668#issuecomment-440186476
2018-11-20 12:20:05 +01:00
Aaron Power
9240ad4571
Update releases to add rename dependencies feature
2018-11-20 10:47:28 +01:00
bors
7a0cef74a8
Auto merge of #56081 - alexcrichton:update-manifest, r=nrc
...
Add temporary renames to manifests for rustfmt/clippy
This will be part of our strategy for shipping renamed versions of these
components for the Rust 2018 edition.
Closes #55967
2018-11-20 09:08:24 +00:00
Wesley Wiser
c7dc868ed7
Fix json output in the self-profiler
...
Fix missing ',' array element separators and convert NaN's to 0.
2018-11-19 23:26:00 -05:00
bors
046e054a99
Auto merge of #55983 - oli-obk:static_, r=Mark-Simulacrum
...
Fix stability hole with `static _`
The `underscore_const_names` only gated const items with `_` as the name.
`static _: () = ();` works on beta without feature gates right now, this PR fixes that.
2018-11-20 03:05:11 +00:00
bors
31fa30145e
Auto merge of #56049 - newpavlov:revert_51601, r=sfackler
...
Revert #51601
Closes : #55985
Specialization of `StepBy<Range(Inclusive)>` results in an incorrectly behaving code when `step_by` is combined with `skip` or `nth`.
If this will get merged we probably should reopen issues previously closed by #51601 (if there was any).
2018-11-20 00:02:33 +00:00
Alex Crichton
3c67ed4500
Add temporary renames to manifests for rustfmt/clippy
...
This will be part of our strategy for shipping renamed versions of these
components for the Rust 2018 edition.
Closes #55967
2018-11-19 14:22:41 -08:00
Ralf Jung
612febcc4b
explain why we can use raw
2018-11-19 23:02:28 +01:00
Ralf Jung
c462e44c13
we now do proper validation on scalars
2018-11-19 23:02:28 +01:00
Ralf Jung
ba82f54b04
use RawConst in miri
2018-11-19 22:42:46 +01:00
Ralf Jung
b50c1b243e
Make const_eval_raw query return just an AllocId
2018-11-19 22:42:46 +01:00
Eric Huss
b8da719024
Fix error message for -C panic=xxx
.
2018-11-19 13:29:35 -08:00
bors
5aff30734b
Auto merge of #55971 - SergioBenitez:skip-non-semantic, r=alexcrichton
...
Ignore non-semantic tokens for 'probably_eq' streams.
Improves the situation in #43081 by skipping typically non-semantic tokens when checking for 'probably_eq'.
r? @alexcrichton
2018-11-19 19:57:02 +00:00
varkor
737dec0ec1
Fix change to predicates
2018-11-19 18:54:52 +00:00
Jethro Beekman
a44e446551
Add override_export_symbols
option to Rust target specification
2018-11-19 23:24:43 +05:30
varkor
0ab70fab19
Fix typo in #[must_use] message
2018-11-19 17:41:10 +00:00
varkor
9178eb41d3
Handle trait objects
2018-11-19 17:41:10 +00:00
varkor
122886842e
Test for #[must_use] on traits
2018-11-19 17:41:10 +00:00
varkor
cb5520bc48
Recognise #[must_use] on traits, affecting impl Trait
2018-11-19 17:41:10 +00:00
varkor
b55717f9b0
Use general uninhabitedness checking
2018-11-19 17:41:10 +00:00