Skip to content

Rollup of 6 pull requests #32402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 22, 2016
Merged

Rollup of 6 pull requests #32402

merged 12 commits into from
Mar 22, 2016

Conversation

GuillaumeGomez and others added 12 commits March 18, 2016 15:47
… should also show the changes to the `cause` method.
In the example, we made a immutable borrow to `println!`, not a mutable one.
Made the 'good' example compile.

I got to the E0368 error page by following the link in the output of the
compiler. My understanding is that the first example is 'bad' and the
second one is 'good'. Following that logic, I pasted the second example
into the file and to my surprise it did not compile. This commit fixes
the example to make it paste-able.
In my understanding, the description is somehow inappropriate.
docs: make some tiny modification about spelling

I think it would be better after modification.
Update of the book; Error handling, section on custom error types: we…

… should also show the changes to the `cause` method.

When I started creating my own error type, I found that we also have to update the cause method, otherwise we have a missing match branch.

It would also be nice to elaborate on the relationship and difference between the description() and fmt() method, but that should be done by someone with more experience with them. :)
docs: Correct an  improper description

In the example, we made a immutable borrow to `println!`, not a mutable one.
…, r=steveklabnik

Documentation fix for E0368

Made the 'good' example compile.

I got to the [E0368 error page](https://doc.rust-lang.org/error-index.html#E0368) by following the link in the output of the
compiler. My understanding is that the first example is 'bad' and the
second one is 'good'. Following that logic, I pasted the second example
into the file and to my surprise it did not compile. This commit fixes
the example to make it paste-able.

On the other hand the docstring contained `compile_fail` flag, which might indicate that this was intentional.
I am also assuming here that the `Rust Compiler Error Index` page is generated from the file I changed.

Please let me know what do you think. Thanks a lot !
docs: Make some changes in texts

In my understanding, the description is somehow inappropriate.
@rust-highfive
Copy link
Contributor

r? @aturon

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

@steveklabnik
Copy link
Member Author

@bors: r+ p=1

@bors
Copy link
Collaborator

bors commented Mar 21, 2016

📌 Commit 6a3c7d5 has been approved by steveklabnik

@steveklabnik steveklabnik assigned steveklabnik and unassigned aturon Mar 21, 2016
@bors
Copy link
Collaborator

bors commented Mar 21, 2016

⌛ Testing commit 6a3c7d5 with merge ef13708...

@bors
Copy link
Collaborator

bors commented Mar 21, 2016

💔 Test failed - auto-win-gnu-64-opt

@alexcrichton
Copy link
Member

@bors: retry

On Mon, Mar 21, 2016 at 4:00 PM, bors [email protected] wrote:

[image: 💔] Test failed - auto-win-gnu-64-opt
http://buildbot.rust-lang.org/builders/auto-win-gnu-64-opt/builds/3499


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#32402 (comment)

@bors
Copy link
Collaborator

bors commented Mar 22, 2016

⌛ Testing commit 6a3c7d5 with merge 4621dd2...

bors added a commit that referenced this pull request Mar 22, 2016
Rollup of 6 pull requests

- Successful merges: #32322, #32339, #32340, #32373, #32376, #32397
- Failed merges:
@bors bors merged commit 6a3c7d5 into rust-lang:master Mar 22, 2016
@Centril Centril added the rollup A PR which is a rollup label Oct 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR which is a rollup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants