Skip to content
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

Add error explanations for E0374, E0375, E0376 on issue #32777 #33415

Merged
merged 1 commit into from
May 15, 2016

Conversation

dfockler
Copy link
Contributor

@dfockler dfockler commented May 4, 2016

No description provided.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pnkfelix (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@dfockler dfockler changed the title Add error explanations for E0374, E0375, E0376 on issue #33383 Add error explanations for E0374, E0375, E0376 on issue #32777 May 4, 2016
@@ -3284,6 +3284,82 @@ impl Baz for Bar { } // Note: This is OK
```
"##,

E0374: r##"
The trait `CoerceUnsized` may only be implemented for a coercion between
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This introduction is confusing. A lot of repetitions make the whole harder than necessary to understand.

Copy link
Contributor Author

@dfockler dfockler May 11, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GuillaumeGomez Oh sorry. Just a note, I was thinking that you were supposed to put the actual error text before the error description.

@GuillaumeGomez
Copy link
Member

Thanks for your work! Globally, your explanations aren't clear enough. Also, if possible, add examples that show how to fix the error (with code annotation to make it even better).

@GuillaumeGomez
Copy link
Member

cc #32777

@dfockler
Copy link
Contributor Author

dfockler commented May 4, 2016

@GuillaumeGomez Thanks for the feedback! I'll read through that RFC more closely and get some changes up soon.

@GuillaumeGomez
Copy link
Member

Thanks! Don't forget to ping me once done (github doesn't notify when PR is updated).

@pnkfelix
Copy link
Member

(I don't really have anything to add to the review at this point. I'll wait to see how @dfockler responds to @GuillaumeGomez 's feedback before r+'ing this.)

@dfockler
Copy link
Contributor Author

dfockler commented May 11, 2016

@GuillaumeGomez I rewrote these to comply with the rfc. If these are good let me know if I should squash them or not, Thanks.

@@ -3284,6 +3284,167 @@ impl Baz for Bar { } // Note: This is OK
```
"##,

E0374: r##"
The struct you are trying to implement `CoerceUnsized` for doesn't have
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still isn't a neutral wording.

@GuillaumeGomez
Copy link
Member

@GuillaumeGomez I rewrote these to comply with the rfc. If these are good let me know if I should squash them or not, Thanks.

At the end, we'll ask you to squash your commits if you haven't already done it. But meantime, it's entirely up to you.

A few nits to fix and I think we'll be good.

@dfockler
Copy link
Contributor Author

@GuillaumeGomez Ok, those issues are fixed.

@GuillaumeGomez
Copy link
Member

Travis says:

/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3289: trailing whitespace
/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3291: trailing whitespace
/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3346: trailing whitespace
/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3350: trailing whitespace
/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3351: trailing whitespace
/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3392: trailing whitespace
/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3403: trailing whitespace
/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3405: trailing whitespace
/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3406: trailing whitespace
/home/travis/build/rust-lang/rust/src/librustc_typeck/diagnostics.rs:3436: trailing whitespace

To check such lints, run "make tidy".

@dfockler
Copy link
Contributor Author

@GuillaumeGomez Ok, whitespace fixed.

@dfockler
Copy link
Contributor Author

@GuillaumeGomez I squashed the commits and it passed on the last check.

@GuillaumeGomez
Copy link
Member

Great, thanks!

cc @Manishearth, @steveklabnik

@steveklabnik
Copy link
Member

@bors: r+ rollup

@bors
Copy link
Contributor

bors commented May 13, 2016

📌 Commit 1e901de has been approved by steveklabnik

sanxiyn added a commit to sanxiyn/rust that referenced this pull request May 14, 2016
Add error explanations for E0374, E0375, E0376 on issue rust-lang#32777
bors added a commit that referenced this pull request May 14, 2016
Rollup of 15 pull requests

- Successful merges: #33342, #33393, #33415, #33475, #33517, #33533, #33534, #33565, #33580, #33590, #33591, #33598, #33603, #33604, #33605
- Failed merges: #33578
Manishearth added a commit to Manishearth/rust that referenced this pull request May 15, 2016
Add error explanations for E0374, E0375, E0376 on issue rust-lang#32777
bors added a commit that referenced this pull request May 15, 2016
@bors bors merged commit 1e901de into rust-lang:master May 15, 2016
bors added a commit that referenced this pull request May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants