]> git.lizzy.rs Git - rust.git/log
rust.git
5 years agointroduce benchmarks of BTreeSet.intersection
Stein Somers [Thu, 21 Feb 2019 16:26:10 +0000 (17:26 +0100)]
introduce benchmarks of BTreeSet.intersection

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

5 years agoremark about the one place where place computation calls size_and_align_of
Ralf Jung [Thu, 21 Feb 2019 15:14:31 +0000 (16:14 +0100)]
remark about the one place where place computation calls size_and_align_of

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 agocodegen and write_metadata can mutate ModuleLLvm.
Gabriela Alexandra Moldovan [Thu, 21 Feb 2019 13:38:44 +0000 (13:38 +0000)]
codegen and write_metadata can mutate ModuleLLvm.

5 years agoUpdate RELEASES.md
Aaron Power [Thu, 21 Feb 2019 13:10:24 +0000 (14:10 +0100)]
Update RELEASES.md

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 agoexplain why we use static alignment in ref-to-place conversion
Ralf Jung [Thu, 21 Feb 2019 12:15:59 +0000 (13:15 +0100)]
explain why we use static alignment in ref-to-place conversion

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 agoUpdate RELEASES.md
Aaron Power [Thu, 21 Feb 2019 09:27:22 +0000 (10:27 +0100)]
Update RELEASES.md

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 agoEnable feature duration_constants in examples
Stjepan Glavina [Thu, 21 Feb 2019 08:13:50 +0000 (09:13 +0100)]
Enable feature duration_constants in examples

5 years agoRemove braces from most E0505 examples
Alex Gurganus [Wed, 20 Feb 2019 22:12:28 +0000 (16:12 -0600)]
Remove braces from most E0505 examples

The solution which uses braces to release the borrow
before it is moved is only required to satisfy the 2015
edition borrow checker.

All other examples give the expected results for both
2015 and 2018 editions.

5 years agoUpdate RELEASES.md
Trevor Spiteri [Wed, 20 Feb 2019 22:10:54 +0000 (23:10 +0100)]
Update RELEASES.md

Co-Authored-By: Aaronepower <Aaronepower@users.noreply.github.com>
5 years agoAllow Self::Module to be mutated.
Gabriela Alexandra Moldovan [Wed, 20 Feb 2019 16:37:52 +0000 (16:37 +0000)]
Allow Self::Module to be mutated.

`codegen_allocator` and `write_metadata` mutate the underlying LLVM module. As
such, it makes sense for these two functions to receive a mutable reference to
the module (as opposed to an immutable one).

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 agoPut Future trait into spotlight
Stjepan Glavina [Wed, 20 Feb 2019 20:59:13 +0000 (21:59 +0100)]
Put Future trait into spotlight

5 years agoAdd examples for duration constants
Stjepan Glavina [Wed, 20 Feb 2019 20:58:20 +0000 (21:58 +0100)]
Add examples for duration constants

5 years agoFixes #58586: Make E0505 explain example fail for 2018 edition
Alex Gurganus [Wed, 20 Feb 2019 19:03:52 +0000 (13:03 -0600)]
Fixes #58586: Make E0505 explain example fail for 2018 edition

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

5 years agoSearch for target_triple.json only if builtin target not found
gnzlbg [Wed, 20 Feb 2019 17:08:21 +0000 (18:08 +0100)]
Search for target_triple.json only if builtin target not found

Before this commit, if the builtin target was found, but an error
happened when instantiating it (e.g. validating the target
specification file failed, etc.), then we ignored those errors
and proceeded to try to find a `target_triple.json` file, and if
that failed, reported that as an error.

With this commit, if rustc is supposed to provide the builtin target,
and something fails while instantiating it, that error will
get properly propagated.

5 years agoUse standard Read/Write traits in sys::stdio
Paul Dicker [Wed, 20 Feb 2019 07:18:29 +0000 (08:18 +0100)]
Use standard Read/Write traits in sys::stdio

5 years agoAddress review comments
Paul Dicker [Tue, 19 Feb 2019 14:57:59 +0000 (15:57 +0100)]
Address review comments

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

5 years agofix typo
Andre Bogus [Wed, 20 Feb 2019 16:59:17 +0000 (17:59 +0100)]
fix typo

5 years ago./x.py test src/test/ui --stage 1 --bless -i --compare-mode=nll
Clint Frederickson [Wed, 20 Feb 2019 16:54:10 +0000 (09:54 -0700)]
./x.py test src/test/ui --stage 1 --bless -i --compare-mode=nll

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 agoUpdate RELEASES.md
Aaron Power [Wed, 20 Feb 2019 14:53:44 +0000 (15:53 +0100)]
Update RELEASES.md

5 years agoUpdate RELEASES.md
Aaron Power [Wed, 20 Feb 2019 14:51:22 +0000 (15:51 +0100)]
Update RELEASES.md

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 agoDedup a rustdoc diagnostic construction
Dale Wijnand [Wed, 20 Feb 2019 10:17:23 +0000 (10:17 +0000)]
Dedup a rustdoc diagnostic construction

5 years agoTurn duration consts into associated consts
Stjepan Glavina [Wed, 20 Feb 2019 13:21:15 +0000 (14:21 +0100)]
Turn duration consts into associated consts

5 years agoupdate clippy: partially HirIdify
ljedrz [Wed, 20 Feb 2019 10:12:23 +0000 (11:12 +0100)]
update clippy: partially HirIdify

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 agoadjust intravisit HirIdification
ljedrz [Fri, 15 Feb 2019 14:21:56 +0000 (15:21 +0100)]
adjust intravisit HirIdification

5 years agoHirIdification: change some NodeId to HirId calls
ljedrz [Fri, 15 Feb 2019 11:16:36 +0000 (12:16 +0100)]
HirIdification: change some NodeId to HirId calls

5 years agohir: remove parent_node from NodeCollector
ljedrz [Fri, 15 Feb 2019 11:14:36 +0000 (12:14 +0100)]
hir: remove parent_node from NodeCollector

5 years agohir: change HirIdValidator.hir_ids_seen to a set
ljedrz [Fri, 15 Feb 2019 09:46:28 +0000 (10:46 +0100)]
hir: change HirIdValidator.hir_ids_seen to a set

5 years agohir: add and use hir_to_node_id in NodeCollector
ljedrz [Fri, 15 Feb 2019 09:30:44 +0000 (10:30 +0100)]
hir: add and use hir_to_node_id in NodeCollector

5 years agohir: HirId-ify intravisit
ljedrz [Wed, 6 Feb 2019 13:16:11 +0000 (14:16 +0100)]
hir: HirId-ify intravisit

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

5 years agocleanup macro after 2018 transition
Aleksey Kladov [Wed, 20 Feb 2019 07:10:11 +0000 (10:10 +0300)]
cleanup macro after 2018 transition

We can now use `?`

5 years agoremove a bit of dead code
Aleksey Kladov [Wed, 20 Feb 2019 06:49:52 +0000 (09:49 +0300)]
remove a bit of dead code

5 years agoRefactor Windows stdio and remove stdin double buffering
Paul Dicker [Thu, 14 Feb 2019 05:35:20 +0000 (06:35 +0100)]
Refactor Windows stdio and remove stdin double buffering

5 years agoRemove unused Read implementation on sys::Windows::Stdin
Paul Dicker [Thu, 14 Feb 2019 05:29:10 +0000 (06:29 +0100)]
Remove unused Read implementation on sys::Windows::Stdin

5 years agoRemove sys::*::Stderr Write implementation
Paul Dicker [Mon, 11 Feb 2019 15:51:32 +0000 (16:51 +0100)]
Remove sys::*::Stderr Write implementation

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