]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agofix link
Ralf Jung [Sat, 23 Feb 2019 15:20:00 +0000 (16:20 +0100)]
fix link

5 years agoexpand type name
Ralf Jung [Sat, 23 Feb 2019 15:18:50 +0000 (16:18 +0100)]
expand type name

5 years agoApply suggestions from code review
Mazdak Farrokhzad [Sat, 23 Feb 2019 15:17:07 +0000 (16:17 +0100)]
Apply suggestions from code review

Co-Authored-By: RalfJung <post@ralfj.de>
5 years agomake MaybeUninit Copy
Ralf Jung [Fri, 22 Feb 2019 21:58:53 +0000 (22:58 +0100)]
make MaybeUninit Copy

5 years agoavoid unnecessary use of MaybeUninit::get_ref, and expand comment on the others
Ralf Jung [Fri, 22 Feb 2019 21:47:30 +0000 (22:47 +0100)]
avoid unnecessary use of MaybeUninit::get_ref, and expand comment on the others

5 years agoexamples for MaybeUninit::zeroed
Ralf Jung [Fri, 22 Feb 2019 21:35:18 +0000 (22:35 +0100)]
examples for MaybeUninit::zeroed

5 years agoexamples for as[_mut]_ptr
Ralf Jung [Fri, 22 Feb 2019 21:23:31 +0000 (22:23 +0100)]
examples for as[_mut]_ptr

5 years agomisc tweaks
Ralf Jung [Fri, 22 Feb 2019 21:17:04 +0000 (22:17 +0100)]
misc tweaks

5 years agoalso add examples to MaybeUninit::into_initialized
Ralf Jung [Fri, 22 Feb 2019 21:11:37 +0000 (22:11 +0100)]
also add examples to MaybeUninit::into_initialized

5 years agoAdd MaybeUninit::read_uninitialized
Ralf Jung [Fri, 22 Feb 2019 21:07:58 +0000 (22:07 +0100)]
Add MaybeUninit::read_uninitialized

Also remove a no-longer accurate comments

5 years agoAuto merge of #57997 - nitnelave:master, r=RalfJung
bors [Fri, 22 Feb 2019 13:52:41 +0000 (13:52 +0000)]
Auto merge of #57997 - nitnelave:master, r=RalfJung

Wrap write_bytes in a function. Move docs

This will allow us to add debug assertions.
See issue #53871.

5 years agoAuto merge of #56113 - spastorino:erroneous-loop-diagnostic-in-nll, r=pnkfelix
bors [Fri, 22 Feb 2019 06:52:39 +0000 (06:52 +0000)]
Auto merge of #56113 - spastorino:erroneous-loop-diagnostic-in-nll, r=pnkfelix

Erroneous loop diagnostic in nll

Closes #53773

r? @nikomatsakis

5 years agoAuto merge of #58574 - RalfJung:pin, r=Mark-Simulacrum
bors [Fri, 22 Feb 2019 04:11:23 +0000 (04:11 +0000)]
Auto merge of #58574 - RalfJung:pin, r=Mark-Simulacrum

improve Pin documentation

Incorporates a bunch of the documentation-related comments that came up when discussing `Pin` stabilization.

Cc @alexcrichton @withoutboats @cramertj @jonhoo

Fixes https://github.com/rust-lang/rust/issues/58130

5 years agoAuto merge of #58616 - vertexclique:destabilize-fixed-width-atomic-integers, r=dtolnay
bors [Fri, 22 Feb 2019 01:29:34 +0000 (01:29 +0000)]
Auto merge of #58616 - vertexclique:destabilize-fixed-width-atomic-integers, r=dtolnay

Destabilize fixed-width const defined atomic integers

With this PR version 1.34.0 onwards const declarations of atomic integers will be unstable.

* Closes https://github.com/rust-lang/rust/issues/58089
* Reverts partially: https://github.com/rust-lang/rust/pull/57425

5 years agotake a bit more space for new_unchecked examples
Ralf Jung [Thu, 21 Feb 2019 22:13:49 +0000 (23:13 +0100)]
take a bit more space for new_unchecked examples

5 years agoAuto merge of #58592 - nikomatsakis:universe-leak-check, r=aturon
bors [Thu, 21 Feb 2019 21:35:21 +0000 (21:35 +0000)]
Auto merge of #58592 - nikomatsakis:universe-leak-check, r=aturon

Re-implement leak check in terms of universes

This PR temporarily restores the leak-check, but implemented in terms of universes. This is not because the leak check behavior was necessarily **correct**, but because (a) we may want to have a transition period and because (b) we want to have more breathing room to work through the full implications of handling higher-ranked types correctly. Note that this PR builds atop https://github.com/rust-lang/rust/pull/58056.

Fixes #58451
Fixes #46989
Fixes #57639

r? @aturon
cc @arielb1, @lqd

~~Temporary note: I've not finished running `./x.py test` locally -- I'm confident a lot of error messages in tests will need updating. I sort of expect them to revert to the older, (imo) less good error messages, which is mildly unfortunate. There might be a way to preserve the new error messages, not sure.~~

5 years agopartially revert 904a0bde93f0348f69914ee90b1f8b6e4e0d7cbc
Niko Matsakis [Thu, 21 Feb 2019 17:14:30 +0000 (12:14 -0500)]
partially revert 904a0bde93f0348f69914ee90b1f8b6e4e0d7cbc

This preserves the error you currently get on stable for the
old-lub-glb-object.rs test.

5 years agoAuto merge of #58584 - ehuss:update-cargo, r=alexcrichton
bors [Thu, 21 Feb 2019 17:18:53 +0000 (17:18 +0000)]
Auto merge of #58584 - ehuss:update-cargo, r=alexcrichton

Update cargo

9 commits in 865cb70106a6b1171a500ff68f93ab52eea56e72..b33ce7fc9092962b0657b4c25354984b5e5c47e4
2019-02-10 15:49:37 +0000 to 2019-02-19 18:42:50 +0000
- Don't retry invalid credentials from git credential helpers (rust-lang/cargo#6681)
- Fix some typos in resolver tests (rust-lang/cargo#6682)
- Add an unstable option to build proc macros for both the host and the target (rust-lang/cargo#6547)
- Test cases proving RUSTC_WRAPPER can be a relative path (rust-lang/cargo#6638)
- Add support for Azure DevOps (rust-lang/cargo#6264)
- Update docs for removed `patch` restriction. (rust-lang/cargo#6663)
- Fix incorrect help message (rust-lang/cargo#6555)
- Stabilize Alternative Registries (rust-lang/cargo#6654)
- Having a [patch] section when publishing is not an error (rust-lang/cargo#6535)

5 years agoupdate test files to reflect new output
Niko Matsakis [Wed, 20 Feb 2019 17:52:23 +0000 (12:52 -0500)]
update test files to reflect new output

One surprise: old-lub-glb-object.rs, may indicate a bug

5 years agorestore the actual leak-check
Niko Matsakis [Wed, 20 Feb 2019 10:39:04 +0000 (05:39 -0500)]
restore the actual leak-check

5 years agointroduce a dummy leak check and invoke it in all the right places
Niko Matsakis [Wed, 20 Feb 2019 10:22:23 +0000 (05:22 -0500)]
introduce a dummy leak check and invoke it in all the right places

This set of diffs was produced by combing through
b68fad670bb3612cac26e50751e4fd9150e59977 and seeing where the
`leak_check` used to be invoked and how.

5 years agoreintroduce `commit_if_ok` calls to `subtype_predicate`
Niko Matsakis [Tue, 19 Feb 2019 23:48:29 +0000 (18:48 -0500)]
reintroduce `commit_if_ok` calls to `subtype_predicate`

5 years agoreintroduce `commit_if_ok` call into `higher_ranked_sub`
Niko Matsakis [Tue, 19 Feb 2019 23:38:42 +0000 (18:38 -0500)]
reintroduce `commit_if_ok` call into `higher_ranked_sub`

5 years agos/skol_/placeholder_/
Niko Matsakis [Wed, 20 Feb 2019 09:57:32 +0000 (04:57 -0500)]
s/skol_/placeholder_/

5 years agofix link
Ralf Jung [Thu, 21 Feb 2019 16:18:18 +0000 (17:18 +0100)]
fix link

5 years agothis is for you, tidy
Ralf Jung [Thu, 21 Feb 2019 15:05:49 +0000 (16:05 +0100)]
this is for you, tidy

5 years agoAuto merge of #58597 - pietroalbini:appveyor-gce, r=alexcrichton
bors [Thu, 21 Feb 2019 14:34:49 +0000 (14:34 +0000)]
Auto merge of #58597 - pietroalbini:appveyor-gce, r=alexcrichton

ci: switch appveyor to gce builders to try debugging the 259 failure

r? @alexcrichton

5 years agoexplain unsafe
Ralf Jung [Thu, 21 Feb 2019 14:33:55 +0000 (15:33 +0100)]
explain unsafe

5 years agowe only list some examples of basic types
Ralf Jung [Thu, 21 Feb 2019 14:31:09 +0000 (15:31 +0100)]
we only list some examples of basic types

5 years agotweaks and fix weird space
Ralf Jung [Thu, 21 Feb 2019 14:30:31 +0000 (15:30 +0100)]
tweaks and fix weird space

5 years agoApply suggestions from code review
Mazdak Farrokhzad [Thu, 21 Feb 2019 14:28:46 +0000 (15:28 +0100)]
Apply suggestions from code review

Co-Authored-By: RalfJung <post@ralfj.de>
5 years agoDestabilize fixed-width const defined atomic integers
Mahmut Bulut [Thu, 21 Feb 2019 12:57:51 +0000 (13:57 +0100)]
Destabilize fixed-width const defined atomic integers

* With this PR 1.34.0 onwards const declarations of atomic integers will be
  unstable.

5 years agoAuto merge of #58535 - RalfJung:miri, r=oli-obk
bors [Thu, 21 Feb 2019 11:44:16 +0000 (11:44 +0000)]
Auto merge of #58535 - RalfJung:miri, r=oli-obk

update miri

r? @oli-obk

Fixes https://github.com/rust-lang/rust/issues/58558

5 years agofinal pin projections tweaking
Ralf Jung [Thu, 21 Feb 2019 09:21:59 +0000 (10:21 +0100)]
final pin projections tweaking

5 years agomore pin projections tweaking
Ralf Jung [Thu, 21 Feb 2019 08:57:29 +0000 (09:57 +0100)]
more pin projections tweaking

5 years agoAuto merge of #58056 - nikomatsakis:issue-57843-universe-leak, r=pnkfelix
bors [Wed, 20 Feb 2019 21:12:18 +0000 (21:12 +0000)]
Auto merge of #58056 - nikomatsakis:issue-57843-universe-leak, r=pnkfelix

make generalization code create new variables in correct universe

In our type inference system, when we "generalize" a type T to become
a suitable value for a type variable V, we sometimes wind up creating
new inference variables. So, for example, if we are making V be some
subtype of `&'X u32`, then we might instantiate V with `&'Y u32`.
This generalized type is then related `&'Y u32 <: &'X u32`, resulting
in a region constriant `'Y: 'X`. Previously, however, we were making
these fresh variables like `'Y` in the "current universe", but they
should be created in the universe of V. Moreover, we sometimes cheat
in an invariant context and avoid creating fresh variables if we know
the result must be equal -- we can only do that when the universes
work out.

Fixes #57843

r? @pnkfelix

5 years agoexpand pinning projections
Ralf Jung [Wed, 20 Feb 2019 18:34:10 +0000 (19:34 +0100)]
expand pinning projections

5 years agotweak pinning projections
Ralf Jung [Wed, 20 Feb 2019 17:28:12 +0000 (18:28 +0100)]
tweak pinning projections

5 years agoci: switch appveyor to gce builders to try debugging the 259 failure
Pietro Albini [Wed, 20 Feb 2019 16:01:29 +0000 (17:01 +0100)]
ci: switch appveyor to gce builders to try debugging the 259 failure

5 years agoRun rustfmt
Santiago Pastorino [Wed, 20 Feb 2019 15:15:27 +0000 (12:15 -0300)]
Run rustfmt

5 years agoFix erroneous loop diagnostic in nll
Santiago Pastorino [Tue, 20 Nov 2018 20:48:16 +0000 (17:48 -0300)]
Fix erroneous loop diagnostic in nll

This commit fixes the logic of detecting when a use happen in a later
iteration of where a borrow was defined

Fixes #53773

5 years agoUse successor_within_block helper
Santiago Pastorino [Tue, 20 Nov 2018 18:26:01 +0000 (15:26 -0300)]
Use successor_within_block helper

5 years agoAuto merge of #58578 - kennytm:rollup, r=kennytm
bors [Wed, 20 Feb 2019 10:14:28 +0000 (10:14 +0000)]
Auto merge of #58578 - kennytm:rollup, r=kennytm

Rollup of 24 pull requests

Successful merges:

 - #56470 (Modify doctest's auto-`fn main()` to allow `Result`s)
 - #58044 (Make overflowing and wrapping negation const)
 - #58303 (Improve stability tags display)
 - #58336 (Fix search results interactions)
 - #58384 (Fix tables display)
 - #58392 (Use less explicit shifting in std::net::ip)
 - #58409 (rustdoc: respect alternate flag when formatting impl trait)
 - #58456 (Remove no longer accurate diagnostic code about NLL)
 - #58528 (Don't use an allocation for ItemId in StmtKind)
 - #58530 (Monomorphize less code in fs::{read|write})
 - #58534 (Mention capping forbid lints)
 - #58536 (Remove UB in pointer tests)
 - #58538 (Add missing fmt structs examples)
 - #58539 (Add alias methods to PathBuf for underlying OsString (#58234))
 - #58544 (Fix doc for rustc "-g" flag)
 - #58545 (Add regression test for a specialization-related ICE (#39448))
 - #58546 (librustc_codegen_llvm => 2018)
 - #58551 (Explain a panic in test case net::tcp::tests::double_bind)
 - #58553 (Use more impl header lifetime elision)
 - #58562 (Fix style nits)
 - #58565 (Fix typo in std::future::Future docs)
 - #58568 (Fix a transposition in driver.rs.)
 - #58569 (Reduce Some Code Repetitions like `(n << amt) >> amt`)
 - #58576 (Stabilize iter::successors and iter::from_fn)

5 years agotweaks
Ralf Jung [Wed, 20 Feb 2019 08:45:28 +0000 (09:45 +0100)]
tweaks

5 years agoRollup merge of #58044 - Lokathor:lokathor, r=alexcrichton
kennytm [Wed, 20 Feb 2019 04:01:58 +0000 (12:01 +0800)]
Rollup merge of #58044 - Lokathor:lokathor, r=alexcrichton

Make overflowing and wrapping negation const

Remember that the signed and unsigned versions are slightly different here, so there's four functions made const instead of just two.

5 years agoRollup merge of #58576 - SimonSapin:successors, r=Centril
kennytm [Tue, 19 Feb 2019 17:13:49 +0000 (01:13 +0800)]
Rollup merge of #58576 - SimonSapin:successors, r=Centril

Stabilize iter::successors and iter::from_fn

FCP: https://github.com/rust-lang/rust/issues/58045#issuecomment-464674773, https://github.com/rust-lang/rust/issues/55977#issuecomment-463964234

5 years agoRollup merge of #58569 - kenta7777:reduce-code-repetition, r=oli-obk
kennytm [Tue, 19 Feb 2019 17:13:47 +0000 (01:13 +0800)]
Rollup merge of #58569 - kenta7777:reduce-code-repetition, r=oli-obk

Reduce Some Code Repetitions like `(n << amt) >> amt`

This Pull Request is related to [#49937](https://github.com/rust-lang/rust/issues/49937).
This Pull Request has reduced repetition of `(n << amt) >> amt`.

5 years agoRollup merge of #58568 - benjaminp:driver-trans, r=wesleywiser
kennytm [Tue, 19 Feb 2019 17:13:46 +0000 (01:13 +0800)]
Rollup merge of #58568 - benjaminp:driver-trans, r=wesleywiser

Fix a transposition in driver.rs.

5 years agoRollup merge of #58565 - thomaseizinger:typo-future-docs, r=frewsxcv
kennytm [Tue, 19 Feb 2019 17:13:44 +0000 (01:13 +0800)]
Rollup merge of #58565 - thomaseizinger:typo-future-docs, r=frewsxcv

Fix typo in std::future::Future docs

I am not quite sure if this is actually a typo but

1. to me the sentence doesn't make sense if it says "expect"
2. I hope that `Future`s are not really allowed to cause memory unsafety if they are polled after completion.

5 years agoRollup merge of #58562 - dlrobertson:fix_nits, r=alexreg
kennytm [Tue, 19 Feb 2019 17:13:41 +0000 (01:13 +0800)]
Rollup merge of #58562 - dlrobertson:fix_nits, r=alexreg

Fix style nits

Fix style nits discovered in reading code.

r? @alexreg

5 years agoRollup merge of #58553 - scottmcm:more-ihle, r=Centril
kennytm [Tue, 19 Feb 2019 17:13:39 +0000 (01:13 +0800)]
Rollup merge of #58553 - scottmcm:more-ihle, r=Centril

Use more impl header lifetime elision

Inspired by seeing explicit lifetimes on these two:

- https://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#impl-FusedIterator
- https://doc.rust-lang.org/nightly/std/primitive.u32.html#impl-Not

And a follow-up to https://github.com/rust-lang/rust/pull/54687, that started using IHLE in libcore.

Most of the changes in here fall into two big categories:

- Removing lifetimes from common traits that can essentially never user a lifetime from an input (particularly `Drop`, `Debug`, and `Clone`)

- Forwarding impls that are only possible because the lifetime doesn't matter (like `impl<R: Read + ?Sized> Read for &mut R`)

I omitted things that seemed like they could be more controversial, like the handful of iterators that have a `Item: 'static` despite the iterator having a lifetime or the `PartialEq` implementations [where the flipped one cannot elide the lifetime](https://internals.rust-lang.org/t/impl-type-parameter-aliases/9403/2?u=scottmcm).

I also removed two lifetimes that turned out to be completely unused; see https://github.com/rust-lang/rust/issues/41960#issuecomment-464557423

5 years agoRollup merge of #58551 - ssomers:master, r=oli-obk
kennytm [Tue, 19 Feb 2019 17:13:36 +0000 (01:13 +0800)]
Rollup merge of #58551 - ssomers:master, r=oli-obk

Explain a panic in test case net::tcp::tests::double_bind

Those who try to build libstd on the Windows Subsystem for Linux experience a single failing test, where the point of failure is an explicit but anonymous panic, as reported in https://github.com/rust-lang/rust/issues/49367
This commit somewhat explains why and allows diagnosing a little.

5 years agoRollup merge of #58546 - taiki-e:librustc_codegen_llvm-2018, r=Centril
kennytm [Tue, 19 Feb 2019 17:13:34 +0000 (01:13 +0800)]
Rollup merge of #58546 - taiki-e:librustc_codegen_llvm-2018, r=Centril

librustc_codegen_llvm => 2018

Transitions `librustc_codegen_llvm` to Rust 2018; cc #58099

r? @Centril

5 years agoRollup merge of #58545 - emlai:regression-test-for-39448, r=Centril
kennytm [Tue, 19 Feb 2019 17:13:33 +0000 (01:13 +0800)]
Rollup merge of #58545 - emlai:regression-test-for-39448, r=Centril

Add regression test for a specialization-related ICE (#39448)

Closes #39448.

This is my first time contributing, I hope I got everything right. :)

5 years agoRollup merge of #58544 - TheBiggerGuy:rustc-doc-cli-args, r=TimNN
kennytm [Tue, 19 Feb 2019 17:13:32 +0000 (01:13 +0800)]
Rollup merge of #58544 - TheBiggerGuy:rustc-doc-cli-args, r=TimNN

Fix doc for rustc "-g" flag

The rustc `-g` CLI flag was miss documented to be a synonym of `-C debug-level=2` and not `-C debuglevel=2`. Also add links to the codegen docs for each synonym.

I am unsure of this will conflict with work on #52938

5 years agoRollup merge of #58539 - aaronstillwell:master, r=Mark-Simulacrum
kennytm [Tue, 19 Feb 2019 17:13:31 +0000 (01:13 +0800)]
Rollup merge of #58539 - aaronstillwell:master, r=Mark-Simulacrum

Add alias methods to PathBuf for underlying OsString (#58234)

Implemented the following methods on PathBuf which forward to the underlying OsString.

- capacity
- with_capacity
- clear
- reserve
- reserve_exact
- shrink_to_fit
- shrink_to

These methods have been documented with reference to the original docs for `OsString`. @Mark-Simulacrum please let me know if you feel this does not suffice.

Further, I've not yet included tests for these definitions - please advise on how comprehensive tests need to be for methods such as these that simply alias other (already tested) methods.

(This PR addresses issue #58234)

5 years agoRollup merge of #58538 - GuillaumeGomez:fmt-examples, r=Centril
kennytm [Tue, 19 Feb 2019 17:13:29 +0000 (01:13 +0800)]
Rollup merge of #58538 - GuillaumeGomez:fmt-examples, r=Centril

Add missing fmt structs examples

r? @rust-lang/docs

5 years agoRollup merge of #58536 - xfix:remove-ub-in-pointer-tests, r=RalfJung
kennytm [Tue, 19 Feb 2019 17:13:28 +0000 (01:13 +0800)]
Rollup merge of #58536 - xfix:remove-ub-in-pointer-tests, r=RalfJung

Remove UB in pointer tests

UB found by Miri.

5 years agoRollup merge of #58534 - dwijnand:mention-capping-forbid-lints, r=oli-obk
kennytm [Tue, 19 Feb 2019 17:13:27 +0000 (01:13 +0800)]
Rollup merge of #58534 - dwijnand:mention-capping-forbid-lints, r=oli-obk

Mention capping forbid lints

I felt the description of forbid was misleading/incomplete without
mentioning how --cap-lints interacts with it.

5 years agoRollup merge of #58530 - scottmcm:monomorphize-less, r=TimNN
kennytm [Tue, 19 Feb 2019 17:13:25 +0000 (01:13 +0800)]
Rollup merge of #58530 - scottmcm:monomorphize-less, r=TimNN

Monomorphize less code in fs::{read|write}

Since the generic-ness is only for the as_refs, might as well have std just compile the important part once instead of on every use.

5 years agoRollup merge of #58528 - Zoxc:stmtkind-item, r=oli-obk
kennytm [Tue, 19 Feb 2019 17:13:24 +0000 (01:13 +0800)]
Rollup merge of #58528 - Zoxc:stmtkind-item, r=oli-obk

Don't use an allocation for ItemId in StmtKind

5 years agoRollup merge of #58456 - lzutao:nll, r=Centril
kennytm [Tue, 19 Feb 2019 17:13:23 +0000 (01:13 +0800)]
Rollup merge of #58456 - lzutao:nll, r=Centril

Remove no longer accurate diagnostic code about NLL

r? @steveklabnik

5 years agoRollup merge of #58409 - euclio:impl-trait-wrapping, r=QuietMisdreavus
kennytm [Tue, 19 Feb 2019 17:13:21 +0000 (01:13 +0800)]
Rollup merge of #58409 - euclio:impl-trait-wrapping, r=QuietMisdreavus

rustdoc: respect alternate flag when formatting impl trait

Fixes #58226.

Before:
<img width="963" alt="screen shot 2019-02-12 at 3 23 30 pm" src="https://user-images.githubusercontent.com/1372438/52665732-4496ea00-2eda-11e9-9e29-efffe43b2abf.png">

After:
<img width="964" alt="screen shot 2019-02-12 at 3 23 51 pm" src="https://user-images.githubusercontent.com/1372438/52665733-452f8080-2eda-11e9-999a-dd1fb28dee16.png">

5 years agoRollup merge of #58392 - scottmcm:less-shifting-in-net-ip, r=oli-obk
kennytm [Tue, 19 Feb 2019 17:13:20 +0000 (01:13 +0800)]
Rollup merge of #58392 - scottmcm:less-shifting-in-net-ip, r=oli-obk

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)

5 years agoRollup merge of #58384 - GuillaumeGomez:fix-table-display, r=QuietMisdreavus
kennytm [Tue, 19 Feb 2019 17:13:18 +0000 (01:13 +0800)]
Rollup merge of #58384 - GuillaumeGomez:fix-table-display, r=QuietMisdreavus

Fix tables display

Fixes #58134.

cc @lzutao

r? @QuietMisdreavus

5 years agoRollup merge of #58336 - GuillaumeGomez:fix-search-results-interactions, r=oli-obk
kennytm [Tue, 19 Feb 2019 17:13:16 +0000 (01:13 +0800)]
Rollup merge of #58336 - GuillaumeGomez:fix-search-results-interactions, r=oli-obk

Fix search results interactions

The bug is visible when you search for "none": the second tab is empty and therefore it messes with the classes. Then when you try to use arrows on the third tab, it just crashes (because only 2 "search-results" are present and you're on tab 3).

r? @QuietMisdreavus

5 years agoRollup merge of #58303 - GuillaumeGomez:stability-tags-display, r=QuietMisdreavus
kennytm [Tue, 19 Feb 2019 17:13:15 +0000 (01:13 +0800)]
Rollup merge of #58303 - GuillaumeGomez:stability-tags-display, r=QuietMisdreavus

Improve stability tags display

The issue was the font color on dark theme. Fixed now:

<img width="352" alt="screenshot 2019-02-08 at 14 15 24" src="https://user-images.githubusercontent.com/3050060/52483276-bd810380-2bb3-11e9-8d46-95368569ac85.png">

r? @QuietMisdreavus

5 years agoUpdate cargo
Eric Huss [Wed, 20 Feb 2019 01:59:32 +0000 (17:59 -0800)]
Update cargo

5 years agoupdate miri
Ralf Jung [Sun, 17 Feb 2019 21:53:06 +0000 (22:53 +0100)]
update miri

5 years agoupdate Cargo.lock and miri URL
Ralf Jung [Sun, 17 Feb 2019 11:39:40 +0000 (12:39 +0100)]
update Cargo.lock and miri URL

5 years agoupdate miri
Ralf Jung [Sun, 17 Feb 2019 10:59:52 +0000 (11:59 +0100)]
update miri

5 years agoexpand Unpin example
Ralf Jung [Tue, 19 Feb 2019 20:27:48 +0000 (21:27 +0100)]
expand Unpin example

5 years agoimprove wording
Ralf Jung [Tue, 19 Feb 2019 20:25:39 +0000 (21:25 +0100)]
improve wording

5 years agoimprove linked list -> drop transition
Ralf Jung [Tue, 19 Feb 2019 20:23:53 +0000 (21:23 +0100)]
improve linked list -> drop transition

5 years agoplease the mericless tidy, oh tidy
Ralf Jung [Tue, 19 Feb 2019 20:18:56 +0000 (21:18 +0100)]
please the mericless tidy, oh tidy

5 years agomention interaction with Deref in intro
Ralf Jung [Tue, 19 Feb 2019 20:12:48 +0000 (21:12 +0100)]
mention interaction with Deref in intro

5 years agoexamples
Ralf Jung [Tue, 19 Feb 2019 19:54:31 +0000 (20:54 +0100)]
examples

5 years agorewrite pin module intro
Ralf Jung [Tue, 19 Feb 2019 19:50:16 +0000 (20:50 +0100)]
rewrite pin module intro

5 years agomore work on projections and RefCell example
Ralf Jung [Tue, 19 Feb 2019 19:26:42 +0000 (20:26 +0100)]
more work on projections and RefCell example

5 years agoseparate section for doubly-linked list, reword projections intro
Ralf Jung [Tue, 19 Feb 2019 19:17:20 +0000 (20:17 +0100)]
separate section for doubly-linked list, reword projections intro

5 years agoApply suggestions from code review
Ralf Jung [Tue, 19 Feb 2019 18:50:43 +0000 (19:50 +0100)]
Apply suggestions from code review

Co-Authored-By: RalfJung <post@ralfj.de>
5 years agoapply some of the feedback
Ralf Jung [Tue, 19 Feb 2019 18:46:33 +0000 (19:46 +0100)]
apply some of the feedback

5 years agoRollup merge of #56470 - llogiq:process-termination-doctest, r=GuillaumeGomez
kennytm [Tue, 19 Feb 2019 17:13:12 +0000 (01:13 +0800)]
Rollup merge of #56470 - llogiq:process-termination-doctest, r=GuillaumeGomez

Modify doctest's auto-`fn main()` to allow `Result`s

This lets the default `fn main()` ~~return `impl Termination`~~ unwrap Results, which allows the use of `?` in most tests without adding it manually. This fixes #56260

~~Blocked on `std::process::Termination` stabilization.~~

Using `Termination` would have been cleaner, but this should work OK.

5 years agoAuto merge of #57896 - oli-obk:permissive_existence, r=cramertj
bors [Tue, 19 Feb 2019 15:30:38 +0000 (15:30 +0000)]
Auto merge of #57896 - oli-obk:permissive_existence, r=cramertj

 Be more permissive with required bounds on existential types

fixes  #54184

r? @pnkfelix

5 years agoStabilize iter::from_fn
Simon Sapin [Tue, 19 Feb 2019 13:10:07 +0000 (14:10 +0100)]
Stabilize iter::from_fn

FCP: https://github.com/rust-lang/rust/issues/55977#issuecomment-463964234

5 years agoStabilize iter::successors
Simon Sapin [Tue, 19 Feb 2019 12:58:55 +0000 (13:58 +0100)]
Stabilize iter::successors

FCP: https://github.com/rust-lang/rust/issues/58045#issuecomment-464674773

5 years agoimprove Pin documentation
Ralf Jung [Tue, 19 Feb 2019 12:08:46 +0000 (13:08 +0100)]
improve Pin documentation

5 years agoAdd missing fmt structs examples
Guillaume Gomez [Sun, 17 Feb 2019 14:55:59 +0000 (15:55 +0100)]
Add missing fmt structs examples

5 years agoFix tables display
Guillaume Gomez [Mon, 11 Feb 2019 21:22:56 +0000 (22:22 +0100)]
Fix tables display

5 years agoAuto merge of #58571 - Manishearth:rustup, r=Manishearth
bors [Tue, 19 Feb 2019 10:06:55 +0000 (10:06 +0000)]
Auto merge of #58571 - Manishearth:rustup, r=Manishearth

Update clippy, RLS, and rustfmt

moved from https://github.com/rust-lang/rust/pull/58337

5 years agoUpdate clippy to rust-lang/rust-clippy@d61b25419be
Manish Goregaokar [Tue, 19 Feb 2019 08:06:31 +0000 (13:36 +0530)]
Update clippy to rust-lang/rust-clippy@d61b25419be

5 years agoAuto merge of #56514 - ollie27:rustdoc_test_libdir, r=QuietMisdreavus
bors [Tue, 19 Feb 2019 07:27:39 +0000 (07:27 +0000)]
Auto merge of #56514 - ollie27:rustdoc_test_libdir, r=QuietMisdreavus

rustdoc: Don't modify library path for doctests

It shouldn't be needed anymore because doctests are no longer compiled with `prefer-dynamic` (since #54939).

r? @QuietMisdreavus

5 years agoreduced some code repetitions.
kenta7777 [Tue, 19 Feb 2019 07:23:03 +0000 (16:23 +0900)]
reduced some code repetitions.

5 years agoFix a transposition in driver.rs.
Benjamin Peterson [Tue, 19 Feb 2019 01:33:52 +0000 (17:33 -0800)]
Fix a transposition in driver.rs.

5 years agoAuto merge of #58503 - varkor:const-generics-hir, r=petrochenkov
bors [Tue, 19 Feb 2019 00:46:12 +0000 (00:46 +0000)]
Auto merge of #58503 - varkor:const-generics-hir, r=petrochenkov

Add const generics to the HIR

Split out from https://github.com/rust-lang/rust/pull/53645.

cc @yodaldevoid

r? @eddyb

5 years agoFix typo in std::future::Future docs
Thomas Eizinger [Mon, 18 Feb 2019 22:36:41 +0000 (09:36 +1100)]
Fix typo in std::future::Future docs

5 years agoFix style nits
Dan Robertson [Mon, 18 Feb 2019 18:34:42 +0000 (18:34 +0000)]
Fix style nits

Fix style nits discovered in reading code.

5 years agoAuto merge of #58543 - jonas-schievink:bumpstrap, r=pietroalbini
bors [Mon, 18 Feb 2019 22:03:41 +0000 (22:03 +0000)]
Auto merge of #58543 - jonas-schievink:bumpstrap, r=pietroalbini

Bump the bootstrap compiler

This compiler includes https://github.com/rust-lang/rust/pull/58501, which fixes an annoying ICE while working on rustc itself.

r? @pietroalbini

5 years agoFixed doc example for Path::with_capacity
Aaron Stillwell [Mon, 18 Feb 2019 17:42:07 +0000 (17:42 +0000)]
Fixed doc example for Path::with_capacity

5 years agoAuto merge of #58549 - pietroalbini:fix-docker-ci-hash, r=Mark-Simulacrum
bors [Mon, 18 Feb 2019 17:34:14 +0000 (17:34 +0000)]
Auto merge of #58549 - pietroalbini:fix-docker-ci-hash, r=Mark-Simulacrum

ci: fix docker cache hash collision

#58416 uncovered a bug in our caching for docker images: if the image `foo` pulls files from the image `bar` and a file in `bar` changed, the hash of `foo` will be the same even though it should be different. In that PR's case, `dist-i686-linux` pulls scripts from `dist-x86_64-linux`, and the PR only changed those scripts, causing an hash collision for `dist-i686-linux`.

We have to fix this, since the image will be rebuilt every time bors switches from testing master to testing beta/stable (and when it switches back), making CI way more painful than it currently is.

The approach used by this PR is to just include all the files in `src/ci/docker` in the hash. It's a bit heavy-handed and it will cause a rebuild of all the images every time a single image changes, but it's the best I can think of.

r? @Mark-Simulacrum
cc @alexcrichton @kennytm