]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agoStabilize linker-plugin based LTO.
Michael Woerister [Fri, 1 Feb 2019 14:15:43 +0000 (15:15 +0100)]
Stabilize linker-plugin based LTO.

5 years agoPermit issue posting to have network failures
Oliver Scherer [Tue, 12 Feb 2019 13:48:53 +0000 (14:48 +0100)]
Permit issue posting to have network failures

5 years agorustc: Implement incremental "fat" LTO
Alex Crichton [Mon, 11 Feb 2019 15:46:04 +0000 (07:46 -0800)]
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

5 years agoAuto merge of #58098 - oli-obk:maybe_allow_internal_unstable, r=petrochenkov
bors [Tue, 12 Feb 2019 12:10:10 +0000 (12:10 +0000)]
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.

5 years agoAdd doctests for str::escape_*
Simon Sapin [Sat, 2 Feb 2019 10:25:46 +0000 (11:25 +0100)]
Add doctests for str::escape_*

5 years agoMake the prema-unstable char::escape_debug_ext method crate-private
Simon Sapin [Sat, 2 Feb 2019 09:37:40 +0000 (10:37 +0100)]
Make the prema-unstable char::escape_debug_ext method crate-private

5 years agoMove str::escape_* to libcore
Simon Sapin [Sat, 2 Feb 2019 09:34:36 +0000 (10:34 +0100)]
Move str::escape_* to libcore

5 years agoStabilize str::escape_* methods
Simon Sapin [Fri, 1 Feb 2019 12:34:07 +0000 (13:34 +0100)]
Stabilize str::escape_* methods

FCP: https://github.com/rust-lang/rust/issues/27791#issuecomment-376864727

5 years agoNew return types for str::escape_* that impl Display and Iterator<char>
Simon Sapin [Fri, 1 Feb 2019 12:31:24 +0000 (13:31 +0100)]
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

5 years agoAdd internal impl_fn_for_zst macro for "named closure types"
Simon Sapin [Fri, 1 Feb 2019 11:43:29 +0000 (12:43 +0100)]
Add internal impl_fn_for_zst macro for "named closure types"

5 years agoDoc rewording
king6cong [Thu, 17 Jan 2019 09:34:25 +0000 (17:34 +0800)]
Doc rewording

5 years agoAuto merge of #57388 - euclio:runmake-explicit-ignore, r=kennytm
bors [Tue, 12 Feb 2019 08:19:35 +0000 (08:19 +0000)]
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.

5 years agoAuto merge of #58389 - Centril:rollup, r=Centril
bors [Tue, 12 Feb 2019 05:50:26 +0000 (05:50 +0000)]
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

5 years agoSet the query in the ImplicitCtxt before trying to mark it green
John Kåre Alsaker [Tue, 12 Feb 2019 01:10:02 +0000 (02:10 +0100)]
Set the query in the ImplicitCtxt before trying to mark it green

5 years agoRollup merge of #58382 - euclio:unix-ext, r=dtolnay
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:29 +0000 (04:42 +0100)]
Rollup merge of #58382 - euclio:unix-ext, r=dtolnay

docs: remove "experimental" wording from std::os::unix

5 years agoRollup merge of #58367 - nnethercote:rm-two-dead-funcs, r=alexcrichton
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:28 +0000 (04:42 +0100)]
Rollup merge of #58367 - nnethercote:rm-two-dead-funcs, r=alexcrichton

Remove two dead functions.

5 years agoRollup merge of #58342 - taiki-e:nll, r=matthewjasper
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:26 +0000 (04:42 +0100)]
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

5 years agoRollup merge of #58322 - taiki-e:librustc_codegen_ssa-2018, r=petrochenkov
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:25 +0000 (04:42 +0100)]
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

5 years agoRollup merge of #58318 - taiki-e:libserialize-2018, r=Centril
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:24 +0000 (04:42 +0100)]
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

5 years agoRollup merge of #58313 - matthewjasper:use-question-in-macros, r=oli-obk
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:23 +0000 (04:42 +0100)]
Rollup merge of #58313 - matthewjasper:use-question-in-macros, r=oli-obk

Use `?` in librustc macros

5 years agoRollup merge of #58300 - taiki-e:librustc_typeck-2018, r=petrochenkov
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:21 +0000 (04:42 +0100)]
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

5 years agoRollup merge of #58288 - taiki-e:rustc-workspace-hack-2018, r=alexcrichton
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:20 +0000 (04:42 +0100)]
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

5 years agoRollup merge of #58287 - taiki-e:rustc-std-workspace-core-2018, r=alexcrichton
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:19 +0000 (04:42 +0100)]
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

5 years agoRollup merge of #58111 - Centril:libterm-2018, r=oli-obk
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:18 +0000 (04:42 +0100)]
Rollup merge of #58111 - Centril:libterm-2018, r=oli-obk

libterm => 2018

Transitions `libterm` to Rust 2018; cc #58099

r? @oli-obk

5 years agoRollup merge of #58105 - Centril:libarena-trans-2018, r=oli-obk
Mazdak Farrokhzad [Tue, 12 Feb 2019 03:42:16 +0000 (04:42 +0100)]
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

5 years agoAuto merge of #58246 - pmccarter:master, r=oli-obk
bors [Tue, 12 Feb 2019 03:20:16 +0000 (03:20 +0000)]
Auto merge of #58246 - pmccarter:master, r=oli-obk

Make `saturating_add` and `saturating_sub` `const` functions

Fixes #58030

5 years agoDisallow `auto` trait alias syntax.
Alexander Regueiro [Tue, 12 Feb 2019 01:50:33 +0000 (01:50 +0000)]
Disallow `auto` trait alias syntax.

5 years agoAuto merge of #58180 - davidtwco:issue-58053, r=estebank
bors [Tue, 12 Feb 2019 00:44:24 +0000 (00:44 +0000)]
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

5 years agolibterm => 2018
Mazdak Farrokhzad [Sun, 3 Feb 2019 02:43:54 +0000 (03:43 +0100)]
libterm => 2018

5 years ago[self-profiler] Misc cleanups
Wesley Wiser [Sun, 10 Feb 2019 19:22:58 +0000 (14:22 -0500)]
[self-profiler] Misc cleanups

5 years agoCapture time spent blocked waiting on queries
Wesley Wiser [Fri, 8 Feb 2019 16:17:58 +0000 (17:17 +0100)]
Capture time spent blocked waiting on queries

This captures time spent blocked when a query is waiting for another
query to finish executing in another thread.

5 years agoAdd self profiler events for loading incremental query results from disk
Wesley Wiser [Thu, 7 Feb 2019 08:58:14 +0000 (09:58 +0100)]
Add self profiler events for loading incremental query results from disk

5 years agolibarena => 2018
Mazdak Farrokhzad [Sat, 2 Feb 2019 17:18:24 +0000 (18:18 +0100)]
libarena => 2018

5 years agouse ignore directives for run-make tests
Andy Russell [Sun, 6 Jan 2019 21:27:57 +0000 (16:27 -0500)]
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.

5 years agoremove "experimental" wording from std::os::unix
Andy Russell [Mon, 11 Feb 2019 20:36:45 +0000 (15:36 -0500)]
remove "experimental" wording from std::os::unix

5 years agoUse hidden suggestions for unused imports lint
Esteban Küber [Mon, 11 Feb 2019 19:16:22 +0000 (11:16 -0800)]
Use hidden suggestions for unused imports lint

5 years agoOnly suggest imports if not imported.
David Wood [Mon, 11 Feb 2019 18:29:10 +0000 (19:29 +0100)]
Only suggest imports if not imported.

This commit modifies name resolution error reporting so that if a name
is in scope and has been imported then we do not suggest importing it.

This can occur when we add a label about constructors not being visible
due to private fields. In these cases, we know that the struct/variant
has been imported and we should silence any suggestions to import the
struct/variant.

5 years agoAdd way to completely hide suggestion from cli output
Esteban Küber [Sat, 9 Feb 2019 11:39:08 +0000 (03:39 -0800)]
Add way to completely hide suggestion from cli output

5 years agoNever inline HideCodeAlways suggestions
Esteban Küber [Fri, 8 Feb 2019 11:02:42 +0000 (03:02 -0800)]
Never inline HideCodeAlways suggestions

5 years agoExpose hidden snippet suggestions
Esteban Küber [Fri, 8 Feb 2019 10:50:53 +0000 (02:50 -0800)]
Expose hidden snippet suggestions

5 years agoAdd way to hide suggestion snippet window from cli output
Esteban Küber [Fri, 8 Feb 2019 10:45:53 +0000 (02:45 -0800)]
Add way to hide suggestion snippet window from cli output

5 years agorename variable and add test directive for #58030
Patrick McCarter [Mon, 11 Feb 2019 16:20:50 +0000 (11:20 -0500)]
rename variable and add test directive for #58030

5 years agoParallel rustc needs synchronizing smart pointer cloning
Oliver Scherer [Fri, 8 Feb 2019 09:21:21 +0000 (10:21 +0100)]
Parallel rustc needs synchronizing smart pointer cloning

5 years agoAllow platform specific tests
Oliver Scherer [Thu, 7 Feb 2019 13:53:21 +0000 (14:53 +0100)]
Allow platform specific tests

5 years agoUse `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocs
Oliver Scherer [Thu, 7 Feb 2019 13:19:06 +0000 (14:19 +0100)]
Use `Rc<[Symbol]>` instead of `Vec<Symbol>` to reduce # of allocs

5 years agoFiddle through the module visibilities for tests
Oliver Scherer [Wed, 6 Feb 2019 09:58:29 +0000 (10:58 +0100)]
Fiddle through the module visibilities for tests

5 years agoMove out tests of a deprecated module to work around `#[test]` bugs
Oliver Scherer [Wed, 6 Feb 2019 09:58:06 +0000 (10:58 +0100)]
Move out tests of a deprecated module to work around `#[test]` bugs

https://github.com/rust-lang/rust/issues/47238

5 years agoUse `allow_internal_unstable` in rustc itself
Oliver Scherer [Tue, 5 Feb 2019 09:56:29 +0000 (10:56 +0100)]
Use `allow_internal_unstable` in rustc itself

5 years agoUpdate fulldeps test
Oliver Scherer [Mon, 4 Feb 2019 14:47:51 +0000 (15:47 +0100)]
Update fulldeps test

5 years agoFixup RustcDeserialize internal features
Oliver Scherer [Mon, 4 Feb 2019 10:49:25 +0000 (11:49 +0100)]
Fixup RustcDeserialize internal features

5 years agoUse a more fitting name for a respanning function
Oliver Scherer [Mon, 4 Feb 2019 10:24:55 +0000 (11:24 +0100)]
Use a more fitting name for a respanning function

5 years agoConsistent attribute argument suggestion
Oliver Scherer [Mon, 4 Feb 2019 10:18:12 +0000 (11:18 +0100)]
Consistent attribute argument suggestion

5 years agoRename the `exp` field to mirror its uses
Oliver Scherer [Mon, 4 Feb 2019 10:16:50 +0000 (11:16 +0100)]
Rename the `exp` field to mirror its uses

5 years agoEase the transition to requiring features by just warning if there's no feature list
Oliver Scherer [Sun, 3 Feb 2019 12:57:03 +0000 (13:57 +0100)]
Ease the transition to requiring features by just warning if there's no feature list

while we could make this change (it's all unstable after all), there are crates.io crates that use the feature and that the compiler depends upon. We can instead roll out this feature while still supporting the old way.

5 years agoRequire a list of features to allow in `allow_internal_unstable`
Oliver Scherer [Sun, 3 Feb 2019 11:55:00 +0000 (12:55 +0100)]
Require a list of features to allow in `allow_internal_unstable`

5 years agoThis fixes doctests in stage 1
Mark Rousskov [Thu, 7 Feb 2019 15:20:17 +0000 (16:20 +0100)]
This fixes doctests in stage 1

The RUSTDOC_LIBDIR should be rustc_libdir, not sysroot_libdir; rustdoc
is like the compiler and should link against rustc's libdir.

Some people currently (i.e., in general, may not be on master) have doc
tests working, but no attempt to determine why has been attempted.

5 years agoNever build rustdoc in stage 0
Mark Rousskov [Wed, 6 Feb 2019 10:37:43 +0000 (11:37 +0100)]
Never build rustdoc in stage 0

When a request for rustdoc is passed for stage 0, x.py build --stage 0
src/tools/rustdoc or ensure(tool::Rustdoc { .. }) with top_stage = 0, we
return the rustdoc for that compiler (i.e., the beta rustdoc).

5 years agoAdd a test for rustc_deprecated
varkor [Mon, 11 Feb 2019 11:16:50 +0000 (12:16 +0100)]
Add a test for rustc_deprecated

5 years agoAdd rustdoc index page test for future deprecation attributes
varkor [Wed, 6 Feb 2019 13:17:27 +0000 (14:17 +0100)]
Add rustdoc index page test for future deprecation attributes

5 years agoAdd a rustdoc test for future rustc_deprecated attributes
varkor [Wed, 6 Feb 2019 13:17:05 +0000 (14:17 +0100)]
Add a rustdoc test for future rustc_deprecated attributes

5 years agoUpdate existing rustdoc test
varkor [Wed, 6 Feb 2019 12:01:28 +0000 (13:01 +0100)]
Update existing rustdoc test

5 years agoDisplay "Deprecation planned" in rustdoc for future rustc deprecations
varkor [Tue, 5 Feb 2019 21:51:23 +0000 (22:51 +0100)]
Display "Deprecation planned" in rustdoc for future rustc deprecations

5 years agoDon't display "Deprecated since" for non-rustc deprecated items
varkor [Tue, 5 Feb 2019 21:51:06 +0000 (22:51 +0100)]
Don't display "Deprecated since" for non-rustc deprecated items

5 years agoDo not apply future deprecation warning for #[deprecated]
varkor [Tue, 5 Feb 2019 21:50:44 +0000 (22:50 +0100)]
Do not apply future deprecation warning for #[deprecated]

5 years agoAuto merge of #56645 - pietroalbini:fix-unused-imports, r=estebank
bors [Mon, 11 Feb 2019 10:34:09 +0000 (10:34 +0000)]
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>

5 years agoAuto merge of #58153 - ljedrz:HirIdify_typeck, r=Zoxc
bors [Mon, 11 Feb 2019 06:03:58 +0000 (06:03 +0000)]
Auto merge of #58153 - ljedrz:HirIdify_typeck, r=Zoxc

Partially Hiridify typeck

Another step towards https://github.com/rust-lang/rust/pull/57578.

5 years agoRemove two dead functions.
Nicholas Nethercote [Mon, 11 Feb 2019 05:27:56 +0000 (16:27 +1100)]
Remove two dead functions.

5 years agoAuto merge of #58152 - ljedrz:HirIdify_mir, r=Zoxc
bors [Mon, 11 Feb 2019 03:35:22 +0000 (03:35 +0000)]
Auto merge of #58152 - ljedrz:HirIdify_mir, r=Zoxc

Partially HirIdify mir

Another step towards https://github.com/rust-lang/rust/pull/57578.

5 years agoAuto merge of #58358 - pietroalbini:update-cargo, r=Mark-Simulacrum
bors [Mon, 11 Feb 2019 01:05:22 +0000 (01:05 +0000)]
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

5 years agoRe-blessed tests.
Alexander Regueiro [Sun, 10 Feb 2019 17:45:11 +0000 (17:45 +0000)]
Re-blessed tests.

5 years agotools: doc comments
Alexander Regueiro [Sat, 9 Feb 2019 22:22:23 +0000 (22:22 +0000)]
tools: doc comments

5 years agolibs: doc comments
Alexander Regueiro [Sat, 9 Feb 2019 22:16:58 +0000 (22:16 +0000)]
libs: doc comments

5 years agoAdd an option to print the status of incremental tasks / dep nodes after running...
John Kåre Alsaker [Sun, 10 Feb 2019 23:03:51 +0000 (00:03 +0100)]
Add an option to print the status of incremental tasks / dep nodes after running them

5 years agotests: doc comments
Alexander Regueiro [Sat, 9 Feb 2019 21:23:30 +0000 (21:23 +0000)]
tests: doc comments

5 years agorustc: doc comments
Alexander Regueiro [Fri, 8 Feb 2019 13:53:55 +0000 (14:53 +0100)]
rustc: doc comments

5 years agoAuto merge of #58361 - GuillaumeGomez:rollup, r=GuillaumeGomez
bors [Sun, 10 Feb 2019 22:35:36 +0000 (22:35 +0000)]
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

5 years agoRollup merge of #58352 - RalfJung:macro, r=oli-obk
Guillaume Gomez [Sun, 10 Feb 2019 20:45:27 +0000 (21:45 +0100)]
Rollup merge of #58352 - RalfJung:macro, r=oli-obk

miri value visitor: use `?` in macro

5 years agoRollup merge of #58350 - petrochenkov:embed, r=frewsxcv
Guillaume Gomez [Sun, 10 Feb 2019 20:45:25 +0000 (21:45 +0100)]
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.

5 years agoRollup merge of #58346 - RalfJung:rpath-pop, r=Mark-Simulacrum
Guillaume Gomez [Sun, 10 Feb 2019 20:45:24 +0000 (21:45 +0100)]
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.

5 years agoRollup merge of #58345 - RalfJung:2nd-filename, r=matthewjasper
Guillaume Gomez [Sun, 10 Feb 2019 20:45:22 +0000 (21:45 +0100)]
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.

5 years agoRollup merge of #58332 - RalfJung:miri-copy-nonoverlapping, r=oli-obk
Guillaume Gomez [Sun, 10 Feb 2019 20:45:21 +0000 (21:45 +0100)]
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

5 years agoRollup merge of #58324 - RalfJung:fn-ptr-eq, r=oli-obk
Guillaume Gomez [Sun, 10 Feb 2019 20:45:20 +0000 (21:45 +0100)]
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

5 years agoRollup merge of #58317 - hayekr:patch-1, r=frewsxcv
Guillaume Gomez [Sun, 10 Feb 2019 20:45:19 +0000 (21:45 +0100)]
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

5 years agoRollup merge of #58297 - GuillaumeGomez:cleanup-js, r=QuietMisdreavus
Guillaume Gomez [Sun, 10 Feb 2019 20:45:18 +0000 (21:45 +0100)]
Rollup merge of #58297 - GuillaumeGomez:cleanup-js, r=QuietMisdreavus

Cleanup JS a bit

r? @QuietMisdreavus

5 years agoRollup merge of #58295 - RalfJung:stdio, r=alexcrichton
Guillaume Gomez [Sun, 10 Feb 2019 20:45:16 +0000 (21:45 +0100)]
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.

5 years agoRollup merge of #58262 - taiki-e:must_use, r=estebank
Guillaume Gomez [Sun, 10 Feb 2019 20:45:15 +0000 (21:45 +0100)]
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

5 years agoRollup merge of #58243 - GuillaumeGomez:trait-alias-docs, r=Manishearth
Guillaume Gomez [Sun, 10 Feb 2019 20:45:13 +0000 (21:45 +0100)]
Rollup merge of #58243 - GuillaumeGomez:trait-alias-docs, r=Manishearth

Add trait alias support in rustdoc

Fixes #57595.

r? @QuietMisdreavus

5 years agoRollup merge of #58203 - euclio:rustdoc-async, r=GuillaumeGomez
Guillaume Gomez [Sun, 10 Feb 2019 20:45:12 +0000 (21:45 +0100)]
Rollup merge of #58203 - euclio:rustdoc-async, r=GuillaumeGomez

rustdoc: display sugared return types for async functions

Fixes #58027.

5 years agoRollup merge of #58157 - h-michael:cargo-lock, r=alexcrichton
Guillaume Gomez [Sun, 10 Feb 2019 20:45:11 +0000 (21:45 +0100)]
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

5 years agoRollup merge of #57926 - icefoxen:test-doc-pr, r=frewsxcv
Guillaume Gomez [Sun, 10 Feb 2019 20:45:09 +0000 (21:45 +0100)]
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.

5 years agoRollup merge of #57740 - JakubOnderka:ipv4addr-to_ne_bytes, r=scottmcm
Guillaume Gomez [Sun, 10 Feb 2019 20:45:08 +0000 (21:45 +0100)]
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`.

5 years agoRollup merge of #57259 - king6cong:master, r=alexcrichton
Guillaume Gomez [Sun, 10 Feb 2019 20:45:07 +0000 (21:45 +0100)]
Rollup merge of #57259 - king6cong:master, r=alexcrichton

Update reference of rlibc crate to compiler-builtins crate

None

5 years agoAuto merge of #58129 - RalfJung:maybe-uninit, r=cramertj
bors [Sun, 10 Feb 2019 20:03:03 +0000 (20:03 +0000)]
Auto merge of #58129 - RalfJung:maybe-uninit, r=cramertj

MaybeUninit: some docs, rename into_inner -> into_initialized, return &mut from set

5 years agofix SGX build failures
Ralf Jung [Sun, 10 Feb 2019 18:08:49 +0000 (19:08 +0100)]
fix SGX build failures

5 years agobump cargo submodule
Pietro Albini [Sun, 10 Feb 2019 17:36:00 +0000 (18:36 +0100)]
bump cargo submodule

5 years agoAdd test for MIR printing changes
Matthew Jasper [Sun, 10 Feb 2019 17:24:18 +0000 (17:24 +0000)]
Add test for MIR printing changes

5 years agoRemove spotlight for trait aliases and fix nits
Guillaume Gomez [Sun, 10 Feb 2019 15:56:21 +0000 (16:56 +0100)]
Remove spotlight for trait aliases and fix nits

5 years agoFix ICE and invalid filenames in MIR printing code
Matthew Jasper [Sun, 10 Feb 2019 15:44:24 +0000 (15:44 +0000)]
Fix ICE and invalid filenames in MIR printing code

5 years agoit is okay not to use into_inner
Ralf Jung [Sun, 10 Feb 2019 14:27:59 +0000 (15:27 +0100)]
it is okay not to use into_inner

5 years agoAuto merge of #58151 - ljedrz:HirIdify_rustc, r=Zoxc
bors [Sun, 10 Feb 2019 14:30:37 +0000 (14:30 +0000)]
Auto merge of #58151 - ljedrz:HirIdify_rustc, r=Zoxc

Partially HirId-ify rustc

Another step towards https://github.com/rust-lang/rust/pull/57578.