Michael Woerister
04f425d2c3
Stabilize linker-plugin based LTO.
2019-02-12 15:10:29 +01: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
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
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
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
Mazdak Farrokhzad
f996e2b6dc
libarena => 2018
2019-02-11 23:49:48 +01:00
Andy Russell
f15d20c1f7
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-11 17:02:06 -05:00
Andy Russell
34052a19a2
remove "experimental" wording from std::os::unix
2019-02-11 15:36:45 -05:00
Patrick McCarter
b04d8aa774
rename variable and add test directive for #58030
2019-02-11 11:20:50 -05:00
bors
57d7cfc3cf
Auto merge of #56645 - pietroalbini:fix-unused-imports, r=estebank
...
Initial implementation of rustfixable unused_imports lint
This PR adds the initial implementation of rustfixable `unused_imports` lint. The implementation works, but rustfix is not able to apply all the suggestions until https://github.com/rust-lang/rust/issues/53934 is fixed. It also needs https://github.com/rust-lang/rust/pull/58296 to hide the suggested note since it's really useless.
cc https://github.com/rust-lang/rust/issues/47888
<details><summary><code>cargo fix</code> in action on the <code>unused_imports</code> lint</summary>
![screenshot from 2018-12-09 15-49-01](https://user-images.githubusercontent.com/2299951/49698874-3a026080-fbca-11e8-9bf1-24060b6c59c8.png )
</details>
2019-02-11 10:34:09 +00:00
bors
576df31bed
Auto merge of #58153 - ljedrz:HirIdify_typeck, r=Zoxc
...
Partially Hiridify typeck
Another step towards https://github.com/rust-lang/rust/pull/57578 .
2019-02-11 06:03:58 +00:00
Nicholas Nethercote
c80466cb97
Remove two dead functions.
2019-02-11 16:27:56 +11:00
bors
4424a2c31a
Auto merge of #58152 - ljedrz:HirIdify_mir, r=Zoxc
...
Partially HirIdify mir
Another step towards https://github.com/rust-lang/rust/pull/57578 .
2019-02-11 03:35:22 +00:00
bors
2d725287e3
Auto merge of #58358 - pietroalbini:update-cargo, r=Mark-Simulacrum
...
Bump cargo to 865cb70
Merged PRs:
* Replace util::without_prefix with Path::strip_prefix rust-lang/cargo#6620
* keep track of crates that are whitelisted to be used even if yanked rust-lang/cargo#6611
* Fix default DYLD_FALLBACK_LIBRARY_PATH on MacOS. rust-lang/cargo#6625
* Bail when trying to run "test --doc --no-run" rust-lang/cargo#6628
* In cargo test's help, add that examples are built rust-lang/cargo#6619
* Extract & re-use filter_targets in cargo_compile rust-lang/cargo#6621
* Test cleanup: remove unnecessary with_status(0) rust-lang/cargo#6630
* Fix run's help message rust-lang/cargo#6631
* Some updates to bash completion. rust-lang/cargo#6644
* Introduce Source::download_now rust-lang/cargo#6637
* Switch from unused_imports to deprecated to test unfixable warnings rust-lang/cargo#6649
2019-02-11 01:05:22 +00:00
bors
3d845e131f
Auto merge of #58361 - GuillaumeGomez:rollup, r=GuillaumeGomez
...
Rollup of 16 pull requests
Successful merges:
- #57259 (Update reference of rlibc crate to compiler-builtins crate)
- #57740 (Use `to_ne_bytes` for converting IPv4Addr to octets)
- #57926 (Tiny expansion to docs for `core::convert`.)
- #58157 (Add Cargo.lock automatically adding message)
- #58203 (rustdoc: display sugared return types for async functions)
- #58243 (Add trait alias support in rustdoc)
- #58262 (Add #[must_use] message to Fn* traits)
- #58295 (std::sys::unix::stdio: explain why we do into_raw)
- #58297 (Cleanup JS a bit)
- #58317 (Some writing improvement, conciseness of intro)
- #58324 (miri: give non-generic functions a stable address)
- #58332 (operand-to-place copies should never be overlapping)
- #58345 (When there are multiple filenames, print what got interpreted as filenames)
- #58346 (rpath computation: explain why we pop())
- #58350 (Fix failing tidy (line endings on Windows))
- #58352 (miri value visitor: use `?` in macro)
Failed merges:
r? @ghost
2019-02-10 22:35:36 +00:00
Guillaume Gomez
d792cef573
Rollup merge of #58352 - RalfJung:macro, r=oli-obk
...
miri value visitor: use `?` in macro
2019-02-10 21:45:27 +01:00
Guillaume Gomez
585f9a7acc
Rollup merge of #58350 - petrochenkov:embed, r=frewsxcv
...
Fix failing tidy (line endings on Windows)
Updates to `embedded-book` including https://github.com/rust-embedded/book/pull/127 .
2019-02-10 21:45:25 +01:00
Guillaume Gomez
9ccfb74a8a
Rollup merge of #58346 - RalfJung:rpath-pop, r=Mark-Simulacrum
...
rpath computation: explain why we pop()
I was quite confused by this code until I got a debug log of what is going on.
2019-02-10 21:45:24 +01:00
Guillaume Gomez
53e9a654e1
Rollup merge of #58345 - RalfJung:2nd-filename, r=matthewjasper
...
When there are multiple filenames, print what got interpreted as filenames
I have written code that crafts command lines for rustc, and when I get "multiple input filenames provided" it can be quite hard to figure out where in this long list of arguments the mistake is hiding. Probably I passed an argument to a flag that does not expect an argument, but which flag would that be?
This changes the error message to print the first two filenames, to make it easier to debug what is going on.
2019-02-10 21:45:22 +01:00
Guillaume Gomez
c3aa84700a
Rollup merge of #58332 - RalfJung:miri-copy-nonoverlapping, r=oli-obk
...
operand-to-place copies should never be overlapping
This seems to just work (verified with the Miri test suite).
r? @oli-obk
2019-02-10 21:45:21 +01:00
Guillaume Gomez
a09aa0fde1
Rollup merge of #58324 - RalfJung:fn-ptr-eq, r=oli-obk
...
miri: give non-generic functions a stable address
This makes Miri correctly handle format string parameters despite https://github.com/rust-lang/rust/issues/58320 .
Matching Miri PR: https://github.com/solson/miri/pull/626
r? @oli-obk
2019-02-10 21:45:20 +01:00
Guillaume Gomez
f4e7bc50a0
Rollup merge of #58317 - hayekr:patch-1, r=frewsxcv
...
Some writing improvement, conciseness of intro
Made unstable-features doc more concise in the introduction paragraph
2019-02-10 21:45:19 +01:00
Guillaume Gomez
d5a8b247be
Rollup merge of #58297 - GuillaumeGomez:cleanup-js, r=QuietMisdreavus
...
Cleanup JS a bit
r? @QuietMisdreavus
2019-02-10 21:45:18 +01:00
Guillaume Gomez
d59ca59b90
Rollup merge of #58295 - RalfJung:stdio, r=alexcrichton
...
std::sys::unix::stdio: explain why we do into_raw
I was quite puzzled why someone would call `into_raw` and then ignore the result.
2019-02-10 21:45:16 +01:00
Guillaume Gomez
112629b921
Rollup merge of #58262 - taiki-e:must_use, r=estebank
...
Add #[must_use] message to Fn* traits
This PR adds `#[must_use]` message to `Fn*` traits.
Related: #57549
r? @estebank
2019-02-10 21:45:15 +01:00
Guillaume Gomez
adf516b94e
Rollup merge of #58243 - GuillaumeGomez:trait-alias-docs, r=Manishearth
...
Add trait alias support in rustdoc
Fixes #57595 .
r? @QuietMisdreavus
2019-02-10 21:45:13 +01:00
Guillaume Gomez
cdbd07cc40
Rollup merge of #58203 - euclio:rustdoc-async, r=GuillaumeGomez
...
rustdoc: display sugared return types for async functions
Fixes #58027 .
2019-02-10 21:45:12 +01:00
Guillaume Gomez
a74e4f7fd5
Rollup merge of #58157 - h-michael:cargo-lock, r=alexcrichton
...
Add Cargo.lock automatically adding message
If I execute `cargo +nightly fix`, this change always occurs; cc #58099
r? @Centril
2019-02-10 21:45:11 +01:00
Guillaume Gomez
82e051b6ce
Rollup merge of #57926 - icefoxen:test-doc-pr, r=frewsxcv
...
Tiny expansion to docs for `core::convert`.
This is not really significant, accept or reject as you wish. I just want to make sure I understand how the PR process works and that I'm doing it right before doing a bigger one for #33417 .
2019-02-10 21:45:09 +01:00
Guillaume Gomez
d9f9780918
Rollup merge of #57740 - JakubOnderka:ipv4addr-to_ne_bytes, r=scottmcm
...
Use `to_ne_bytes` for converting IPv4Addr to octets
It is easier and it should be also faster, because [`to_ne_bytes`](https://doc.rust-lang.org/std/primitive.u32.html#method.to_ne_bytes ) just calls `mem::transmute`.
2019-02-10 21:45:08 +01:00
Guillaume Gomez
e917f8b531
Rollup merge of #57259 - king6cong:master, r=alexcrichton
...
Update reference of rlibc crate to compiler-builtins crate
None
2019-02-10 21:45:07 +01:00
bors
0b7af2668a
Auto merge of #58129 - RalfJung:maybe-uninit, r=cramertj
...
MaybeUninit: some docs, rename into_inner -> into_initialized, return &mut from set
2019-02-10 20:03:03 +00:00
Ralf Jung
4833074a9a
fix SGX build failures
2019-02-10 19:08:49 +01:00
Pietro Albini
998e584522
bump cargo submodule
2019-02-10 18:36:00 +01:00
Guillaume Gomez
b1d82ac6ed
Remove spotlight for trait aliases and fix nits
2019-02-10 16:56:21 +01:00
Ralf Jung
4853ce660e
it is okay not to use into_inner
2019-02-10 15:35:47 +01:00
bors
c3d2490433
Auto merge of #58151 - ljedrz:HirIdify_rustc, r=Zoxc
...
Partially HirId-ify rustc
Another step towards https://github.com/rust-lang/rust/pull/57578 .
2019-02-10 14:30:37 +00:00
Ralf Jung
eaf81c2e3e
miri value visitor: use in macro
2019-02-10 15:16:25 +01:00