Mazdak Farrokhzad
734cc3e79e
Rollup merge of #57693 - king6cong:word, r=Centril
...
Doc rewording
None
2019-02-13 04:36:55 +01:00
bors
0f949c2fcc
Auto merge of #58051 - SimonSapin:str_escape, r=alexcrichton
...
Stabilize str::escape_* methods with new return types…
… that implement `Display` and `Iterator<Item=char>`, as proposed in FCP: https://github.com/rust-lang/rust/issues/27791#issuecomment-376864727
2019-02-12 23:30:16 +00:00
Josh Stone
adb54c2fa7
[CI] Update dist-x86_64-linux to GCC 5.5
...
This also updates dist-i686-linux, since it borrows the same scripts.
While we're at it, update llvm+clang+lld to llvm-project 8.0.0-rc2.
2019-02-12 15:28:27 -08:00
Vitaly _Vi Shukela
7b2a08cf49
Add Instant::checked_duration_since, address #58402 .
2019-02-13 00:49:48 +03:00
bors
b244f61b77
Auto merge of #58341 - alexreg:cosmetic-2-doc-comments, r=steveklabnik
...
Cosmetic improvements to doc comments
This has been factored out from https://github.com/rust-lang/rust/pull/58036 to only include changes to documentation comments (throughout the rustc codebase).
r? @steveklabnik
Once you're happy with this, maybe we could get it through with r=1, so it doesn't constantly get invalidated? (I'm not sure this will be an issue, but just in case...) Anyway, thanks for your advice so far!
2019-02-12 19:09:24 +00:00
Andy Russell
e827c9ab3c
respect alternate flag when formatting impl trait
2019-02-12 13:45:36 -05:00
David Wood
ee82d09b6c
Check user type annotations for range patterns.
...
This commit builds on the fix from #58161 (which fixed miscompilation
caused by the introduction of `AscribeUserType` patterns for associated
constants) to start checking these patterns are well-formed for ranges
(previous fix just ignored them so that miscompilation wouldn't occur).
2019-02-12 19:37:54 +01:00
Josh Stone
e0544ca1cf
[CI] Update crosstool-ng builders to GCC 5.2
2019-02-12 09:56:09 -08:00
Michael Woerister
3a9d171b0a
Fix some rebasing fallout regarding xLTO.
2019-02-12 17:17:05 +01:00
Vadim Kaushan
1f1a82434b
Add riscv64gc-unknown-none-elf target
2019-02-12 19:15:00 +03:00
Vadim Kaushan
06f21a5314
Add riscv64imac-unknown-none-elf target
2019-02-12 19:05:41 +03:00
Vadim Kaushan
0f4668a5b0
Update LLVM: apply patches for RISC-V 64-bit support
2019-02-12 18:58:06 +03:00
Taiki Endo
c08b5ca4ad
Fix rebase fail
2019-02-13 00:31:53 +09:00
Taiki Endo
c360ba285c
Cleanup imports
2019-02-13 00:31:51 +09:00
Taiki Endo
3216c7656a
Rename rustc_errors dependency in rust 2018 crates
2019-02-13 00:28:52 +09:00
gnzlbg
3a8448c3ff
Fix rustc_driver swallowing errors when compilation is stopped
2019-02-12 16:16:12 +01:00
gnzlbg
1431c216fe
Remove some dead code from libcore
...
These macros are not required to glue the `core_arch` crate anymore.
2019-02-12 16:11:59 +01:00
Michael Woerister
3733b3267d
Add documentation about -Clinker-plugin-lto to rustc book.
2019-02-12 15:42:04 +01:00
Andy Russell
8b21a55b96
use Ubuntu keyserver for CloudABI ports
...
The Ubuntu keyserver is more reliable than the MIT PGP server, which is
prone to going down. This commit also explicitly uses port 80 on the
keyserver for reasons outlined in #57844 .
2019-02-12 09:39:38 -05:00
Alexander Regueiro
370f1f26ce
Added tests.
2019-02-12 14:33:58 +00:00
Michael Woerister
04f425d2c3
Stabilize linker-plugin based LTO.
2019-02-12 15:10:29 +01:00
Oliver Scherer
6ed4401609
Permit issue posting to have network failures
2019-02-12 14:48:53 +01:00
Alex Crichton
e983b4f64e
rustc: Implement incremental "fat" LTO
...
Currently the compiler will produce an error if both incremental
compilation and full fat LTO is requested. With recent changes and the
advent of incremental ThinLTO, however, all the hard work is already
done for us and it's actually not too bad to remove this error!
This commit updates the codegen backend to allow incremental full fat
LTO. The semantics are that the input modules to LTO are all produce
incrementally, but the final LTO step is always done unconditionally
regardless of whether the inputs changed or not. The only real
incremental win we could have here is if zero of the input modules
changed, but that's so rare it's unlikely to be worthwhile to implement
such a code path.
cc #57968
cc rust-lang/cargo#6643
2019-02-12 04:58:31 -08:00
bors
c84e797642
Auto merge of #58098 - oli-obk:maybe_allow_internal_unstable, r=petrochenkov
...
Require a list of features in `#[allow_internal_unstable]`
The blanket-permission slip is not great and will likely give us trouble some point down the road.
2019-02-12 12:10:10 +00:00
Simon Sapin
eb158f9350
Add doctests for str::escape_*
2019-02-12 09:55:30 +01:00
Simon Sapin
114593d638
Make the prema-unstable char::escape_debug_ext method crate-private
2019-02-12 09:55:30 +01:00
Simon Sapin
92cce78d06
Move str::escape_* to libcore
2019-02-12 09:55:30 +01:00
Simon Sapin
55216f82a6
Stabilize str::escape_* methods
...
FCP: https://github.com/rust-lang/rust/issues/27791#issuecomment-376864727
2019-02-12 09:55:29 +01:00
Simon Sapin
7a077804a3
New return types for str::escape_* that impl Display and Iterator<char>
...
As FCP’ed in the tracking issue: https://github.com/rust-lang/rust/issues/27791#issuecomment-376864727
2019-02-12 09:55:20 +01:00
Simon Sapin
92dcae4742
Add internal impl_fn_for_zst macro for "named closure types"
2019-02-12 09:55:20 +01:00
king6cong
b284c8d608
Doc rewording
2019-02-12 16:45:19 +08:00
bors
a54b5c7a64
Auto merge of #57388 - euclio:runmake-explicit-ignore, r=kennytm
...
use ignore directives for run-make tests
This makes the tests easier to read, and makes it possible to tell which
tests aren't being run on the host platform.
Fixes #56704 .
2019-02-12 08:19:35 +00:00
Scott McMurray
5d8058477e
Use less explicit shifting in std::net::ip
...
Now that we have {to|from}_be_bytes the code can be simpler.
(Inspired by PR #57740 )
2019-02-11 23:00:01 -08:00
bors
75f9159009
Auto merge of #58389 - Centril:rollup, r=Centril
...
Rollup of 11 pull requests
Successful merges:
- #58105 (libarena => 2018)
- #58111 (libterm => 2018)
- #58287 (rustc-std-workspace-core => 2018)
- #58288 (rustc-workspace-hack => 2018)
- #58300 (librustc_typeck => 2018)
- #58313 (Use `?` in librustc macros)
- #58318 (libserialize => 2018)
- #58322 (librustc_codegen_ssa => 2018)
- #58342 (Revert removed #![feature(nll)])
- #58367 (Remove two dead functions.)
- #58382 (docs: remove "experimental" wording from std::os::unix)
Failed merges:
r? @ghost
2019-02-12 05:50:26 +00:00
John Kåre Alsaker
ddb6c4f899
Set the query in the ImplicitCtxt before trying to mark it green
2019-02-12 05:48:39 +01:00
Mazdak Farrokhzad
33d2c9f533
Rollup merge of #58382 - euclio:unix-ext, r=dtolnay
...
docs: remove "experimental" wording from std::os::unix
2019-02-12 04:42:29 +01:00
Mazdak Farrokhzad
5dc571270e
Rollup merge of #58367 - nnethercote:rm-two-dead-funcs, r=alexcrichton
...
Remove two dead functions.
2019-02-12 04:42:28 +01:00
Mazdak Farrokhzad
f04d0852f5
Rollup merge of #58342 - taiki-e:nll, r=matthewjasper
...
Revert removed #![feature(nll)]
In PRs related to #58099 , `#![feature(nll)]` was removed from several crates.
This PR reverts it.
Related: https://github.com/rust-lang/rust/pull/58265#discussion_r255021244
cc @Centril
r? @matthewjasper
2019-02-12 04:42:26 +01:00
Mazdak Farrokhzad
4f2d0cfe3b
Rollup merge of #58322 - taiki-e:librustc_codegen_ssa-2018, r=petrochenkov
...
librustc_codegen_ssa => 2018
Transitions `librustc_codegen_ssa` to Rust 2018; cc #58099
r? @petrochenkov
2019-02-12 04:42:25 +01:00
Mazdak Farrokhzad
308c07bc3b
Rollup merge of #58318 - taiki-e:libserialize-2018, r=Centril
...
libserialize => 2018
Transitions `libserialize` to Rust 2018; cc #58099
This includes a commit from #58252 (thanks @h-michael!)
r? @Centril
2019-02-12 04:42:24 +01:00
Mazdak Farrokhzad
d9434531db
Rollup merge of #58313 - matthewjasper:use-question-in-macros, r=oli-obk
...
Use `?` in librustc macros
2019-02-12 04:42:23 +01:00
Mazdak Farrokhzad
a84c93324c
Rollup merge of #58300 - taiki-e:librustc_typeck-2018, r=petrochenkov
...
librustc_typeck => 2018
Transitions `librustc_typeck` to Rust 2018; cc #58099
TODO: elided_lifetimes_in_paths
r? @Centril
2019-02-12 04:42:21 +01:00
Mazdak Farrokhzad
b8fe6f9d43
Rollup merge of #58288 - taiki-e:rustc-workspace-hack-2018, r=alexcrichton
...
rustc-workspace-hack => 2018
Transitions `rustc-workspace-hack` to Rust 2018; cc #58099
r? @alexcrichton
2019-02-12 04:42:20 +01:00
Mazdak Farrokhzad
95ffa78784
Rollup merge of #58287 - taiki-e:rustc-std-workspace-core-2018, r=alexcrichton
...
rustc-std-workspace-core => 2018
Transitions `rustc-std-workspace-core` to Rust 2018; cc #58099
r? @alexcrichton
2019-02-12 04:42:19 +01:00
Mazdak Farrokhzad
3ca1b70dea
Rollup merge of #58111 - Centril:libterm-2018, r=oli-obk
...
libterm => 2018
Transitions `libterm` to Rust 2018; cc #58099
r? @oli-obk
2019-02-12 04:42:18 +01:00
Mazdak Farrokhzad
3dbb31e3d6
Rollup merge of #58105 - Centril:libarena-trans-2018, r=oli-obk
...
libarena => 2018
Transitions `libarena` to Rust 2018; cc https://github.com/rust-lang/rust/issues/58099
r? @oli-obk
2019-02-12 04:42:16 +01:00
bors
ba2853b6d3
Auto merge of #58246 - pmccarter:master, r=oli-obk
...
Make `saturating_add` and `saturating_sub` `const` functions
Fixes #58030
2019-02-12 03:20:16 +00:00
Alexander Regueiro
aafbf742c2
Disallow auto
trait alias syntax.
2019-02-12 01:50:33 +00:00
bors
16ca0b9f63
Auto merge of #58180 - davidtwco:issue-58053, r=estebank
...
Fix span for closure return type when annotated.
Fixes #58053 .
This PR adjusts the span used to label closure return types so that
if the user specifies the return type, i.e. `|_| -> X {}` instead of
`|_| {}`, we correctly highlight all of it and not just the last
character.
r? @pnkfelix
2019-02-12 00:44:24 +00:00
Mazdak Farrokhzad
0ce5129d05
libterm => 2018
2019-02-12 00:08:08 +01:00