]> git.lizzy.rs Git - rust.git/log
rust.git
4 years agoRollup merge of #63146 - Mark-Simulacrum:clean-attr, r=petrochenkov
Mazdak Farrokhzad [Sat, 3 Aug 2019 11:11:59 +0000 (13:11 +0200)]
Rollup merge of #63146 - Mark-Simulacrum:clean-attr, r=petrochenkov

Cleanup syntax::attr

Mostly removing needless arguments to constructors

r? @petrochenkov

4 years agoRollup merge of #62954 - ia0:fix_typo_span, r=Centril
Mazdak Farrokhzad [Sat, 3 Aug 2019 11:11:57 +0000 (13:11 +0200)]
Rollup merge of #62954 - ia0:fix_typo_span, r=Centril

Fix typo in Delimited::open_tt

4 years agoAuto merge of #63180 - varkor:trait-alias-impl-trait, r=Centril
bors [Sat, 3 Aug 2019 02:21:23 +0000 (02:21 +0000)]
Auto merge of #63180 - varkor:trait-alias-impl-trait, r=Centril

Change opaque type syntax from `existential type` to type alias `impl Trait`

This implements a new feature gate `type_alias_impl_trait` (this is slightly different from the originally proposed feature name, but matches what has been used in discussion since), deprecating the old `existential_types` feature.

The syntax for opaque types has been changed. In addition, the "existential" terminology has been replaced with "opaque", as per previous discussion and the RFC.

This makes partial progress towards implementing https://github.com/rust-lang/rust/issues/63063.

r? @Centril

4 years agoAuto merge of #63228 - Centril:rollup-x39p5ga, r=Centril
bors [Fri, 2 Aug 2019 22:44:53 +0000 (22:44 +0000)]
Auto merge of #63228 - Centril:rollup-x39p5ga, r=Centril

Rollup of 7 pull requests

Successful merges:

 - #63107 (Added support for armv7-unknown-linux-gnueabi/musleabi)
 - #63121 (On `format!()` arg count mismatch provide extra info)
 - #63196 (build_helper: try less confusing method names)
 - #63206 (remove unsupported test case)
 - #63208 (Round generator sizes to a multiple of their alignment)
 - #63212 (Pretty print attributes in `print_arg`)
 - #63215 (Clarify semantics of mem::zeroed)

Failed merges:

r? @ghost

4 years agoRollup merge of #63215 - gnzlbg:patch-6, r=Centril
Mazdak Farrokhzad [Fri, 2 Aug 2019 22:09:14 +0000 (00:09 +0200)]
Rollup merge of #63215 - gnzlbg:patch-6, r=Centril

Clarify semantics of mem::zeroed

Clarifies the semantics of `mem::zeroed`.

r? @Centril

cc @RalfJung

4 years agoRollup merge of #63212 - Centril:param-attrs-pretty, r=davidtwco
Mazdak Farrokhzad [Fri, 2 Aug 2019 22:09:12 +0000 (00:09 +0200)]
Rollup merge of #63212 - Centril:param-attrs-pretty, r=davidtwco

Pretty print attributes in `print_arg`

Fixes https://github.com/rust-lang/rust/issues/63210.
cc https://github.com/rust-lang/rust/issues/60406

r? @petrochenkov

4 years agoRollup merge of #63208 - tmandry:issue-62658, r=cramertj
Mazdak Farrokhzad [Fri, 2 Aug 2019 22:09:11 +0000 (00:09 +0200)]
Rollup merge of #63208 - tmandry:issue-62658, r=cramertj

Round generator sizes to a multiple of their alignment

Fixes #62658.

r? @cramertj
cc @eddyb

4 years agoRollup merge of #63206 - BaoshanPang:master, r=alexcrichton
Mazdak Farrokhzad [Fri, 2 Aug 2019 22:09:09 +0000 (00:09 +0200)]
Rollup merge of #63206 - BaoshanPang:master, r=alexcrichton

remove unsupported test case

r? @alexcrichton

4 years agoRollup merge of #63196 - RalfJung:build_helper, r=alexcrichton
Mazdak Farrokhzad [Fri, 2 Aug 2019 22:09:07 +0000 (00:09 +0200)]
Rollup merge of #63196 - RalfJung:build_helper, r=alexcrichton

build_helper: try less confusing method names

build_helper's `*_silent` methods were likely called that way because they do not print the command being run to stdout. [In the original file this all makes sense](https://github.com/rust-lang/rust/commit/046e6874c47ec55e23b7a566bca51d2920562485#diff-5c3d6537a43ecae03014e118a7fe3321). But later it also gained `*_suppressed` methods and the difference between `silent` and `suppressed` is far from clear.

So rename `run` (which prints the command being run) to `run_verbose`. Then we can call the methods that just run a command and show its output but nothing extra `run` and `try_run`.

`run_verbose` (formerly `run`) is unused from what I can tell. Should I remove it?

r? @alexcrichton
Cc @Mark-Simulacrum
Also see https://github.com/rust-lang/rust/pull/63089#discussion_r308018890.

4 years agoRollup merge of #63121 - estebank:formatting-pos, r=alexcrichton
Mazdak Farrokhzad [Fri, 2 Aug 2019 22:09:06 +0000 (00:09 +0200)]
Rollup merge of #63121 - estebank:formatting-pos, r=alexcrichton

On `format!()` arg count mismatch provide extra info

When positional width and precision formatting flags are present in a
formatting string that has an argument count mismatch, provide extra
information pointing at them making it easiser to understand where the
problem may lay:

```
error: 4 positional arguments in format string, but there are 3 arguments
  --> $DIR/ifmt-bad-arg.rs:78:15
   |
LL |     println!("{} {:.*} {}", 1, 3.2, 4);
   |               ^^ ^^--^ ^^      --- this parameter corresponds to the precision flag
   |                    |
   |                    this precision flag adds an extra required argument at position 1, which is why there are 4 arguments expected
   |
   = note: positional arguments are zero-based
   = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html

error: 4 positional arguments in format string, but there are 3 arguments
  --> $DIR/ifmt-bad-arg.rs:81:15
   |
LL |     println!("{} {:07$.*} {}", 1, 3.2, 4);
   |               ^^ ^^-----^ ^^      --- this parameter corresponds to the precision flag
   |                    |  |
   |                    |  this precision flag adds an extra required argument at position 1, which is why there are 4 arguments expected
   |                    this width flag expects an `usize` argument at position 7, but there are 3 arguments
   |
   = note: positional arguments are zero-based
   = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html

error: invalid reference to positional argument 7 (there are 3 arguments)
  --> $DIR/ifmt-bad-arg.rs:84:18
   |
LL |     println!("{} {:07$} {}", 1, 3.2, 4);
   |                  ^^^--^
   |                     |
   |                     this width flag expects an `usize` argument at position 7, but there are 3 arguments
   |
   = note: positional arguments are zero-based
   = note: for information about formatting flags, visit https://doc.rust-lang.org/std/fmt/index.html
```

Fix #49384.

4 years agoRollup merge of #63107 - adrian-budau:master, r=alexcrichton
Mazdak Farrokhzad [Fri, 2 Aug 2019 22:09:04 +0000 (00:09 +0200)]
Rollup merge of #63107 - adrian-budau:master, r=alexcrichton

Added support for armv7-unknown-linux-gnueabi/musleabi

Fixes #63101

Some things that are not done and I hope someone can help me with:

* During the ci build of `armv7-unknown-linux-gnueabi` `openssl` must be built (to build cargo) but `openssl` does not yet support this target. This feels slightly like a chicken-and-egg problem, any feedback is welcome.
* Should I add any tests for any of these targets?

4 years agoFix broken test and nit
varkor [Fri, 2 Aug 2019 02:40:16 +0000 (03:40 +0100)]
Fix broken test and nit

4 years agoAuto merge of #62309 - jlevon:62302, r=alexcrichton
bors [Fri, 2 Aug 2019 19:06:53 +0000 (19:06 +0000)]
Auto merge of #62309 - jlevon:62302, r=alexcrichton

provide thread name to OS for Solarish systems

Fixes #62302

Passes a Linux bootstrap build. python x.py test src/tools/tidy happy.
I tested this with a small test binary that spawns a few threads, and verified
that:

 - on an illumos system lacking the libc function, the binary runs but no OS-level
    thread names are set
 - on an illumos system with the feature, the binary runs, and the thread names are
    visible and correct under tools like MDB, pstack, core dump, etc.

4 years agoAdded support for armv7-unknown-linux-gnueabi and armv7-unknown-linux-musleabi.
Adrian Budau [Mon, 29 Jul 2019 15:28:36 +0000 (18:28 +0300)]
Added support for armv7-unknown-linux-gnueabi and armv7-unknown-linux-musleabi.

Support for the targets in the compiler and std build in the CI.

4 years agoremove unsupported test case
Baoshan Pang [Thu, 1 Aug 2019 23:28:22 +0000 (16:28 -0700)]
remove unsupported test case

4 years agoAuto merge of #63207 - petrochenkov:outest2, r=Mark-Simulacrum
bors [Fri, 2 Aug 2019 15:22:50 +0000 (15:22 +0000)]
Auto merge of #63207 - petrochenkov:outest2, r=Mark-Simulacrum

Unconfigure compiler unit test files during normal build

I haven't touched libstd though, it had a lot of tests and I'm not sure the people maintaining it want this.

Closes https://github.com/rust-lang/rust/issues/61097
r? @Mark-Simulacrum

4 years agoConsistency.
gnzlbg [Fri, 2 Aug 2019 13:07:19 +0000 (15:07 +0200)]
Consistency.

4 years agoRemove trailing whitespace
gnzlbg [Fri, 2 Aug 2019 12:12:12 +0000 (14:12 +0200)]
Remove trailing whitespace

I had one job...

4 years agoClarify semantics of mem::zeroed
gnzlbg [Fri, 2 Aug 2019 11:39:07 +0000 (13:39 +0200)]
Clarify semantics of mem::zeroed

4 years agoAuto merge of #63214 - Centril:rollup-hdb7dnx, r=Centril
bors [Fri, 2 Aug 2019 11:24:13 +0000 (11:24 +0000)]
Auto merge of #63214 - Centril:rollup-hdb7dnx, r=Centril

Rollup of 7 pull requests

Successful merges:

 - #62663 (More questionmarks in doctests)
 - #62969 (Changing the structure of `mir::interpret::InterpError`)
 - #63153 (Remove redundant method with const variable resolution)
 - #63189 (Doc improvements)
 - #63198 (Allow trailing comma in macro 2.0 declarations.)
 - #63202 (Fix ICE in #63135)
 - #63203 (Make is_mutable use PlaceRef instead of it's fields)

Failed merges:

r? @ghost

4 years agoRollup merge of #63203 - spastorino:is-mutable-use-place-ref, r=oli-obk
Mazdak Farrokhzad [Fri, 2 Aug 2019 10:14:23 +0000 (12:14 +0200)]
Rollup merge of #63203 - spastorino:is-mutable-use-place-ref, r=oli-obk

Make is_mutable use PlaceRef instead of it's fields

r? @oli-obk

4 years agoRollup merge of #63202 - exphp-forks:parser-ice-63135, r=estebank
Mazdak Farrokhzad [Fri, 2 Aug 2019 10:14:21 +0000 (12:14 +0200)]
Rollup merge of #63202 - exphp-forks:parser-ice-63135, r=estebank

Fix ICE in #63135

Closes #63135.

r?@estebank

4 years agoRollup merge of #63198 - rbartlensky:fix-macro-trailing-comma, r=petrochenkov
Mazdak Farrokhzad [Fri, 2 Aug 2019 10:14:20 +0000 (12:14 +0200)]
Rollup merge of #63198 - rbartlensky:fix-macro-trailing-comma, r=petrochenkov

Allow trailing comma in macro 2.0 declarations.

This should hopefully close #63102.

4 years agoRollup merge of #63189 - waywardmonkeys:doc-improvements, r=Centril
Mazdak Farrokhzad [Fri, 2 Aug 2019 10:14:18 +0000 (12:14 +0200)]
Rollup merge of #63189 - waywardmonkeys:doc-improvements, r=Centril

Doc improvements

Miscellaneous documentation fixes.

4 years agoRollup merge of #63153 - varkor:remove-resolve_const_var, r=cramertj
Mazdak Farrokhzad [Fri, 2 Aug 2019 10:14:17 +0000 (12:14 +0200)]
Rollup merge of #63153 - varkor:remove-resolve_const_var, r=cramertj

Remove redundant method with const variable resolution

I've also removed a `bug!()` in const value relation code and replaced it with a `FIXME`. Now `ConstValue::Slice` and `ConstValue::ByRef` will simply fail to unify rather than ICEing, which seems more user-friendly for testers.

4 years agoRollup merge of #62969 - saleemjaffer:declutter_interperror, r=RalfJung
Mazdak Farrokhzad [Fri, 2 Aug 2019 10:14:15 +0000 (12:14 +0200)]
Rollup merge of #62969 - saleemjaffer:declutter_interperror, r=RalfJung

Changing the structure of `mir::interpret::InterpError`

Implements [this](https://github.com/rust-rfcs/const-eval/issues/4#issuecomment-514559965)

4 years agoRollup merge of #62663 - llogiq:more-questionmark-docs, r=GuillaumeGomez
Mazdak Farrokhzad [Fri, 2 Aug 2019 10:14:14 +0000 (12:14 +0200)]
Rollup merge of #62663 - llogiq:more-questionmark-docs, r=GuillaumeGomez

More questionmarks in doctests

This removes the other `unwrap`s in the macro doctests, replacing them with `?`. For now, we need to specify the main function including the return type, we can get rid of that once the return type suggestion for `fn main() { .. }` works correctly.

r? @QuietMisdreavus

4 years agoprovide thread name to OS for Solarish systems
John Levon [Fri, 2 Aug 2019 08:16:20 +0000 (09:16 +0100)]
provide thread name to OS for Solarish systems

4 years agoAuto merge of #61393 - gnzlbg:update_libc, r=gnzlbg
bors [Fri, 2 Aug 2019 07:45:05 +0000 (07:45 +0000)]
Auto merge of #61393 - gnzlbg:update_libc, r=gnzlbg

Update Cargo.lock

4 years agoTest for printing attrs on formal params.
Mazdak Farrokhzad [Fri, 2 Aug 2019 07:35:28 +0000 (09:35 +0200)]
Test for printing attrs on formal params.

4 years agoPrint outer attributes on formal params.
Mazdak Farrokhzad [Fri, 2 Aug 2019 07:34:49 +0000 (09:34 +0200)]
Print outer attributes on formal params.

4 years agoCleanup 'print_generic_params'.
Mazdak Farrokhzad [Fri, 2 Aug 2019 06:36:08 +0000 (08:36 +0200)]
Cleanup 'print_generic_params'.

4 years agoAddress review comments
varkor [Fri, 2 Aug 2019 00:14:42 +0000 (01:14 +0100)]
Address review comments

4 years agoResolve FIXME with async-await test
varkor [Fri, 2 Aug 2019 00:14:33 +0000 (01:14 +0100)]
Resolve FIXME with async-await test

4 years agoRename `OpaqueTyOrigin` variants
varkor [Thu, 1 Aug 2019 23:09:38 +0000 (00:09 +0100)]
Rename `OpaqueTyOrigin` variants

4 years agoReplace `exist_ty` and `ExistTy` with `opaque_ty` and `OpaqueTy`
varkor [Thu, 1 Aug 2019 23:08:05 +0000 (00:08 +0100)]
Replace `exist_ty` and `ExistTy` with `opaque_ty` and `OpaqueTy`

4 years agoReplace `abstract type` with type alias `impl Trait`
varkor [Thu, 1 Aug 2019 23:05:19 +0000 (00:05 +0100)]
Replace `abstract type` with type alias `impl Trait`

4 years agoFix fallout after rebase
varkor [Wed, 31 Jul 2019 23:40:42 +0000 (00:40 +0100)]
Fix fallout after rebase

4 years agoReplace "existential" by "opaque"
varkor [Wed, 31 Jul 2019 23:41:54 +0000 (00:41 +0100)]
Replace "existential" by "opaque"

4 years agoUpdate syntax in existing tests
varkor [Mon, 29 Jul 2019 23:11:58 +0000 (00:11 +0100)]
Update syntax in existing tests

4 years agoSwitch existential_type to type_alias_impl_trait
varkor [Mon, 29 Jul 2019 23:11:50 +0000 (00:11 +0100)]
Switch existential_type to type_alias_impl_trait

4 years agoRound generator sizes to multiple of their alignment
Tyler Mandry [Fri, 2 Aug 2019 01:24:12 +0000 (18:24 -0700)]
Round generator sizes to multiple of their alignment

Fixes #62658.

4 years agoRemove some more `cfg(test)`s
Vadim Petrochenkov [Thu, 1 Aug 2019 22:58:40 +0000 (01:58 +0300)]
Remove some more `cfg(test)`s

4 years agoliballoc: Unconfigure tests during normal build
Vadim Petrochenkov [Thu, 1 Aug 2019 22:40:56 +0000 (01:40 +0300)]
liballoc: Unconfigure tests during normal build

Remove additional libcore-like restrictions from liballoc, turns out the testing works ok if the tests are a part of liballoc itself.

4 years agolibsyntax: Unconfigure tests during normal build
Vadim Petrochenkov [Thu, 1 Aug 2019 21:26:40 +0000 (00:26 +0300)]
libsyntax: Unconfigure tests during normal build

4 years agolibrustdoc: Unconfigure tests during normal build
Vadim Petrochenkov [Thu, 1 Aug 2019 21:18:56 +0000 (00:18 +0300)]
librustdoc: Unconfigure tests during normal build

4 years agolibrustc_data_structures: Unconfigure tests during normal build
Vadim Petrochenkov [Thu, 1 Aug 2019 20:57:23 +0000 (23:57 +0300)]
librustc_data_structures: Unconfigure tests during normal build

4 years agolibrustc: Unconfigure tests during normal build
Vadim Petrochenkov [Thu, 1 Aug 2019 00:35:26 +0000 (03:35 +0300)]
librustc: Unconfigure tests during normal build

4 years agolibrustc_incremental: Unconfigure tests during normal build
Vadim Petrochenkov [Thu, 1 Aug 2019 00:35:10 +0000 (03:35 +0300)]
librustc_incremental: Unconfigure tests during normal build

4 years agolibsyntax_pos: Unconfigure tests during normal build
Vadim Petrochenkov [Thu, 1 Aug 2019 00:20:23 +0000 (03:20 +0300)]
libsyntax_pos: Unconfigure tests during normal build

4 years agolibrustc_target: Unconfigure tests during normal build
Vadim Petrochenkov [Thu, 1 Aug 2019 00:20:03 +0000 (03:20 +0300)]
librustc_target: Unconfigure tests during normal build

4 years agolibrustc_lexer: Unconfigure tests during normal build
Vadim Petrochenkov [Thu, 1 Aug 2019 00:19:11 +0000 (03:19 +0300)]
librustc_lexer: Unconfigure tests during normal build

4 years agolibpanic_unwind: Unconfigure tests during normal build
Vadim Petrochenkov [Wed, 31 Jul 2019 23:52:30 +0000 (02:52 +0300)]
libpanic_unwind: Unconfigure tests during normal build

4 years agolibserialize: Unconfigure tests during normal build
Vadim Petrochenkov [Wed, 31 Jul 2019 23:47:06 +0000 (02:47 +0300)]
libserialize: Unconfigure tests during normal build

4 years agolibterm: Unconfigure tests during normal build
Vadim Petrochenkov [Wed, 31 Jul 2019 23:34:41 +0000 (02:34 +0300)]
libterm: Unconfigure tests during normal build

4 years agolibtest: Unconfigure tests during normal build
Vadim Petrochenkov [Wed, 31 Jul 2019 23:28:43 +0000 (02:28 +0300)]
libtest: Unconfigure tests during normal build

4 years agocompiletest: Unconfigure tests during normal build
Vadim Petrochenkov [Wed, 31 Jul 2019 23:15:42 +0000 (02:15 +0300)]
compiletest: Unconfigure tests during normal build

4 years agotidy: Unconfigure tests during normal build
Vadim Petrochenkov [Wed, 31 Jul 2019 23:07:24 +0000 (02:07 +0300)]
tidy: Unconfigure tests during normal build

4 years agoMake is_mutable use PlaceRef instead of it's fields
Santiago Pastorino [Thu, 1 Aug 2019 21:41:37 +0000 (23:41 +0200)]
Make is_mutable use PlaceRef instead of it's fields

4 years agoAdd check-pass test for #63102.
Robert Bartlensky [Thu, 1 Aug 2019 21:41:10 +0000 (22:41 +0100)]
Add check-pass test for #63102.

4 years agoFix ICE in #63135
Michael Lamparski [Thu, 1 Aug 2019 21:31:12 +0000 (17:31 -0400)]
Fix ICE in #63135

4 years agoAllow trailing comma in macro 2.0 declarations.
Robert Bartlensky [Thu, 1 Aug 2019 20:07:47 +0000 (21:07 +0100)]
Allow trailing comma in macro 2.0 declarations.

4 years agoFutures: Add link to Waker in trait doc.
Bruce Mitchener [Thu, 1 Aug 2019 18:39:25 +0000 (01:39 +0700)]
Futures: Add link to Waker in trait doc.

4 years agoRemove extraneous {} in use stmts in doc comments.
Bruce Mitchener [Thu, 1 Aug 2019 08:13:53 +0000 (15:13 +0700)]
Remove extraneous {} in use stmts in doc comments.

4 years agoFix typos in doc comments.
Bruce Mitchener [Thu, 1 Aug 2019 08:13:31 +0000 (15:13 +0700)]
Fix typos in doc comments.

4 years agoreplace what I think is an erroneous try_run_quiet by try_run
Ralf Jung [Thu, 1 Aug 2019 18:21:25 +0000 (20:21 +0200)]
replace what I think is an erroneous try_run_quiet by try_run

4 years agobuild_helper: rename (try_)run_silent -> (try_)run
Ralf Jung [Thu, 1 Aug 2019 18:13:47 +0000 (20:13 +0200)]
build_helper: rename (try_)run_silent -> (try_)run

4 years agobuild_helper: rename run -> run_verbose (seems unused)
Ralf Jung [Thu, 1 Aug 2019 18:08:49 +0000 (20:08 +0200)]
build_helper: rename run -> run_verbose (seems unused)

4 years agoMore questionmarks in doctests
Andre Bogus [Sat, 13 Jul 2019 17:27:22 +0000 (19:27 +0200)]
More questionmarks in doctests

4 years agoUpdate Cargo.lock
gnzlbg [Thu, 1 Aug 2019 15:02:26 +0000 (17:02 +0200)]
Update Cargo.lock

4 years agoTemporarily disable the redox builder
gnzlbg [Wed, 31 Jul 2019 12:36:57 +0000 (14:36 +0200)]
Temporarily disable the redox builder

4 years agoRemove spin dependency
gnzlbg [Mon, 29 Jul 2019 15:44:44 +0000 (17:44 +0200)]
Remove spin dependency

4 years agoUpdate Cargo.lock
gnzlbg [Wed, 24 Jul 2019 15:02:35 +0000 (17:02 +0200)]
Update Cargo.lock

4 years agoRemove mach dependency
gnzlbg [Fri, 21 Jun 2019 15:35:48 +0000 (17:35 +0200)]
Remove mach dependency

4 years agoFix test of issue 3656
gnzlbg [Sat, 1 Jun 2019 13:37:54 +0000 (15:37 +0200)]
Fix test of issue 3656

4 years agoUse Rust integer types instead of libc's fixed-width types
gnzlbg [Sat, 1 Jun 2019 12:21:38 +0000 (14:21 +0200)]
Use Rust integer types instead of libc's fixed-width types

4 years agoUpdate libc and use the Mach kernel APIs via the mach crate instead.
gnzlbg [Fri, 31 May 2019 11:50:30 +0000 (13:50 +0200)]
Update libc and use the Mach kernel APIs via the mach crate instead.

4 years agoAuto merge of #63194 - pietroalbini:rollup-xgnvb1b, r=pietroalbini
bors [Thu, 1 Aug 2019 14:43:00 +0000 (14:43 +0000)]
Auto merge of #63194 - pietroalbini:rollup-xgnvb1b, r=pietroalbini

Rollup of 8 pull requests

Successful merges:

 - #62644 (simplify std::io::Write::write rustdoc)
 - #62971 (Add keywords item into the sidebar)
 - #63122 (Account for `maybe_whole_expr` in range patterns)
 - #63158 (Add test for issue-58951)
 - #63170 (cleanup StringReader fields)
 - #63179 (update test cases for vxWorks)
 - #63188 (Fix typos in release notes.)
 - #63191 (ci: fix toolstate not pushing data for Linux)

Failed merges:

r? @ghost

4 years agoRollup merge of #63191 - pietroalbini:really-fix-toolstate, r=alexcrichton
Pietro Albini [Thu, 1 Aug 2019 14:00:34 +0000 (16:00 +0200)]
Rollup merge of #63191 - pietroalbini:really-fix-toolstate, r=alexcrichton

ci: fix toolstate not pushing data for Linux

A recent commit modified toolstate to only push updated data when the `TOOLSTATE_PUBLISH` environment variable is present. This worked fine on Windows but failed on Linux, since Linux jobs run inside Docker containers and the variable wasn't forwarded inside it.

This changes the Docker startup code to set the `TOOLSTATE_PUBLISH` enviornment variable inside the container if it's present outside.

r? @alexcrichton
fixes https://github.com/rust-lang/rust/issues/63190

4 years agoRollup merge of #63188 - waywardmonkeys:release-note-typo-fixes, r=Centril
Pietro Albini [Thu, 1 Aug 2019 14:00:32 +0000 (16:00 +0200)]
Rollup merge of #63188 - waywardmonkeys:release-note-typo-fixes, r=Centril

Fix typos in release notes.

4 years agoRollup merge of #63179 - BaoshanPang:testcases, r=alexcrichton
Pietro Albini [Thu, 1 Aug 2019 14:00:31 +0000 (16:00 +0200)]
Rollup merge of #63179 - BaoshanPang:testcases, r=alexcrichton

update test cases for vxWorks

issue-2214.rs: lgamma is lgamma on vxWorks
ignore process-envs.rs and process-remove-from-env.rs as there is no 'env' on vxWorks

4 years agoRollup merge of #63170 - matklad:cleanup-fields, r=petrochenkov
Pietro Albini [Thu, 1 Aug 2019 14:00:29 +0000 (16:00 +0200)]
Rollup merge of #63170 - matklad:cleanup-fields, r=petrochenkov

cleanup StringReader fields

reduce visibility and replace `Lrc<SourceFile>` with `start_pos`: the single bit we actually *need* from the file.

r? @petrochenkov

4 years agoRollup merge of #63158 - JohnTitor:add-test-for-58951, r=Centril
Pietro Albini [Thu, 1 Aug 2019 14:00:28 +0000 (16:00 +0200)]
Rollup merge of #63158 - JohnTitor:add-test-for-58951, r=Centril

Add test for issue-58951

Closes #58951

r? @Centril

4 years agoRollup merge of #63122 - Centril:fix-63115, r=petrochenkov
Pietro Albini [Thu, 1 Aug 2019 14:00:26 +0000 (16:00 +0200)]
Rollup merge of #63122 - Centril:fix-63115, r=petrochenkov

Account for `maybe_whole_expr` in range patterns

Fixes https://github.com/rust-lang/rust/issues/63115 (fallout from https://github.com/rust-lang/rust/pull/62550).

r? @petrochenkov

4 years agoRollup merge of #62971 - GuillaumeGomez:keyword-sidebar, r=nobody
Pietro Albini [Thu, 1 Aug 2019 14:00:25 +0000 (16:00 +0200)]
Rollup merge of #62971 - GuillaumeGomez:keyword-sidebar, r=nobody

Add keywords item into the sidebar

Fixes #62939.

cc @pravic

screenshot of the result:

![Screenshot from 2019-07-25 14-29-48](https://user-images.githubusercontent.com/3050060/61874545-f9512080-aee8-11e9-8e8b-aa50216aec94.png)

r? @QuietMisdreavus

4 years agoRollup merge of #62644 - arnottcr:std_io-doc, r=steveklabnik
Pietro Albini [Thu, 1 Aug 2019 14:00:22 +0000 (16:00 +0200)]
Rollup merge of #62644 - arnottcr:std_io-doc, r=steveklabnik

simplify std::io::Write::write rustdoc

The std::io::Write::write method currensly suggests consumers guaranteed
that `0 <= n <= buf.len()`, for `Ok(n)`, however `n` is of type `usize`
causing the compiler to emit a warning:
```
warning: comparison is useless due to type limits
 --> lib.rs:6:18
  |
6 |         Ok(n) => 0 <= n && n <= output.len(),
  |                  ^^^^^^
  |
  = note: #[warn(unused_comparisons)] on by default
```

This PR removes the suggestion to check `0 <= n` since it is moot.

r? @steveklabnik

4 years agoci: forward the TOOLSTATE_PUBLISH environment variable inside docker
Pietro Albini [Thu, 1 Aug 2019 09:34:53 +0000 (11:34 +0200)]
ci: forward the TOOLSTATE_PUBLISH environment variable inside docker

A recent commit modified toolstate to only push updated data when the
TOOLSTATE_PUBLISH environment variable is present. This worked fine on
Windows but failed on Linux, since Linux jobs run inside Docker
containers and the variable wasn't forwarded inside it.

This changes the Docker startup code to set the TOOLSTATE_PUBLISH
enviornment variable inside the container if it's present outside.

4 years agoFixedSizeArray: Add missing links in doc comments.
Bruce Mitchener [Thu, 1 Aug 2019 08:07:40 +0000 (15:07 +0700)]
FixedSizeArray: Add missing links in doc comments.

4 years agoAuto merge of #62507 - petrochenkov:macunstab, r=alexcrichton
bors [Thu, 1 Aug 2019 11:07:26 +0000 (11:07 +0000)]
Auto merge of #62507 - petrochenkov:macunstab, r=alexcrichton

Remove derives `Encodable`/`Decodable` and unstabilize attribute `#[bench]`

`Encodable` and `Decodable` were deprecated before 1.0 and emitted an unsuppressable warning all this time.
`#[bench]` is a part of the custom test framework feature and cannot be used meaningfully on stable, only as `cfg(false)`.

Crater results can be found in https://github.com/rust-lang/rust/pull/62507#issuecomment-513850732 and below.

This PR also reroutes the tracking issue for `feature(test)` from #27812 (compiler internals) to #50297 (custom test frameworks).

Closes https://github.com/rust-lang/rust/issues/62048

4 years agoAuto merge of #63181 - ehuss:update-cargo-rls, r=alexcrichton
bors [Thu, 1 Aug 2019 07:29:11 +0000 (07:29 +0000)]
Auto merge of #63181 - ehuss:update-cargo-rls, r=alexcrichton

Update cargo, rls

## cargo

12 commits in d0f828419d6ce6be21a90866964f58eb2c07cd56..26092da337b948719549cd5ed3d1051fd847afd7
2019-07-23 21:58:59 +0000 to 2019-07-31 23:24:32 +0000
- tests: Enable features to fix unstabilized `#[bench]` (rust-lang/cargo#7198)
- Fix excluding target dirs from backups on OSX (rust-lang/cargo#7192)
- Handle symlinks to directories (rust-lang/cargo#6817)
- Enable pipelined compilation by default (rust-lang/cargo#7143)
- Refactor resolve `Method` (rust-lang/cargo#7186)
- Update `cargo_compile` module doc. (rust-lang/cargo#7187)
- Clean up TargetInfo (rust-lang/cargo#7185)
- Fix some issues with absolute paths in dep-info files. (rust-lang/cargo#7137)
- Update the `url` crate to 2.0 (rust-lang/cargo#7175)
- Tighten requirements for git2 crates (rust-lang/cargo#7176)
- Fix a deadlocking test with master libgit2 (rust-lang/cargo#7179)
- Fix detection of cyclic dependencies through `[patch]` (rust-lang/cargo#7174)

## rls

1 commits in 70347b5d4dfe78eeb9e6f6db85f773c8d43cd22b..93d9538c6000fcf6c8da763ef4ce7a8d407b7d24
2019-07-30 12:56:38 +0200 to 2019-07-31 21:42:49 +0200
- Update cargo (rust-lang-nursery/rls#1529)

4 years agocode review fixes
Saleem Jaffer [Thu, 1 Aug 2019 06:43:49 +0000 (12:13 +0530)]
code review fixes

4 years agoFix typos in release notes.
Bruce Mitchener [Thu, 1 Aug 2019 05:38:37 +0000 (12:38 +0700)]
Fix typos in release notes.

4 years agocode review fixes
Saleem Jaffer [Thu, 1 Aug 2019 04:19:01 +0000 (09:49 +0530)]
code review fixes

4 years agoissue-2214.rs: lgamma is lgamma on vxWorks
Baoshan Pang [Thu, 1 Aug 2019 00:09:07 +0000 (17:09 -0700)]
issue-2214.rs: lgamma is lgamma on vxWorks

ignore process-envs.rs and process-remove-from-env.rs as there is no 'env' on vxWorks

4 years agoChange to check-pass
Yuki Okushi [Thu, 1 Aug 2019 02:17:01 +0000 (11:17 +0900)]
Change to check-pass

4 years agoUpdate cargo, rls
Eric Huss [Thu, 1 Aug 2019 00:44:39 +0000 (17:44 -0700)]
Update cargo, rls

4 years agofix dedup
Esteban Küber [Wed, 31 Jul 2019 21:13:00 +0000 (14:13 -0700)]
fix dedup

4 years agoAddress review comments.
Mazdak Farrokhzad [Wed, 31 Jul 2019 19:25:11 +0000 (21:25 +0200)]
Address review comments.

4 years agoAuto merge of #62897 - alexcrichton:fix-i686-msvc-tests, r=pietroalbini
bors [Wed, 31 Jul 2019 19:05:13 +0000 (19:05 +0000)]
Auto merge of #62897 - alexcrichton:fix-i686-msvc-tests, r=pietroalbini

Attempt to fix backtrace tests on i686-msvc

Some fixes for i686-msvc and Windows have landed on the `backtrace`
crate but hadn't made their way here yet. Let's update that and see if
it passes CI.

4 years agoDrive-by fix: Update two tests failing in `--pass check` mode
Vadim Petrochenkov [Wed, 31 Jul 2019 18:12:10 +0000 (21:12 +0300)]
Drive-by fix: Update two tests failing in `--pass check` mode