Skip to content

Rollup of 10 pull requests - #37170

Merged
bors merged 22 commits into
rust-lang:masterfrom
sophiajt:rollup
Oct 15, 2016
Merged

Rollup of 10 pull requests#37170
bors merged 22 commits into
rust-lang:masterfrom
sophiajt:rollup

Conversation

GuillaumeGomezand others added 22 commits October 8, 2016 18:05
Start the lifetime section with an explanation of the issues that
lack of explicit lifetimes cause and how lifetimes alleviate these.
…uillaumeGomez
Changed error message E0408 to new format
Followed your text and was able to change the ouput to the new format.
I did not encounter any broken test therefore this is a really small commit.
Thanks for letting me hack on the compiler :)
r? @jonathandturner
Explain motivation behind lifetimes
Start the lifetime section with an explanation of the issues that lack of explicit lifetimes cause and how the explicit lifetimes solve these.
----------------
I had really hard time figuring out why I would need to care about the explicit reference lifetimes when going through the book at first. With strong background in C++, I'm familiar with the dangling reference problem - but given the section seems to focus more on the lifetime syntax and various ways to define lifetimes on functions and structs, I was unable to understand how they are used to solve the reference problem.
This PR is an attempt at getting the reader to understand what the explicit lifetimes are used for and why they are an awesome thing instead of a bit of syntax that just has to be written.
It's been less than a week that I've been diving into Rust so I'm far from certain about the terminology and technical correctness. I tried mimicking the existing terminology from the lifetimes section, but still no promises on getting it right.
…laumeGomez
rustdoc: color the question mark operator
The idea of coloring `?` specially was proposed by @eddyb in: rust-lang#31436 (comment)
…mcallister
add missing urls for BufWriter and BufReader
r? @steveklabnik
…ichton
add (missing) tar to list of packages to get under mingw
The distribution targets use tar, but the readme pacman invocation doesn't include the tar package.
@sophiajt

Copy link
Copy Markdown
ContributorAuthor

@bors r+ p=1

@bors

bors commented Oct 14, 2016

Copy link
Copy Markdown
Collaborator

📌 Commit 881f0f8 has been approved by jonathandturner

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @sfackler

(rust_highfive has picked a reviewer for you, use r? to override)

@bors

bors commented Oct 14, 2016

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 881f0f8 with merge a8d189a...

bors added a commit that referenced this pull request Oct 14, 2016
Rollup of 10 pull requests
- Successful merges: #36307, #36755, #36961, #37102, #37115, #37119, #37122, #37123, #37141, #37159
- Failed merges:
@bors
bors merged commit 881f0f8 into rust-lang:masterOct 15, 2016
@CentrilCentril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rollupA PR which is a rollup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

13 participants

@sophiajt@bors@rust-highfive@Centril@sfackler@GuillaumeGomez@est31@durka@srinivasreddy@faebser@Rantanen@omern1@cthulhua