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

Updates compiler error E0046 with new format #35355

Merged
merged 1 commit into from Aug 7, 2016
Merged

Conversation

shri3k
Copy link
Contributor

@shri3k shri3k commented Aug 5, 2016

Addresses #35209 as part of #35233.
r? @jonathandturner

I've repeated the following in my code. If this is something not desirable then let me know if there's any process to make this any cleaner. Thank you.

missing_items.iter()
    .map(|name| name.to_string())
     .collect::<Vec<_>>().join("`, `"))

@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 @jonathandturner (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.

@sophiajt
Copy link
Contributor

sophiajt commented Aug 5, 2016

Thanks for the PR! You'll need to also update the unit tests in the src/test directory that test this error:

jturner-23759:rust jturner$ git grep E0046
src/doc/book/associated-constants.md:error: not all trait items implemented, missing: `ID` [E0046]
src/librustc_typeck/check/mod.rs:        span_err!(tcx.sess, impl_span, E0046,
src/librustc_typeck/diagnostics.rs:E0046: r##"
src/test/compile-fail/E0046.rs:impl Foo for Bar {} //~ ERROR E0046
src/test/compile-fail/impl-wrong-item-for-trait.rs:    //~^ ERROR E0046
src/test/compile-fail/impl-wrong-item-for-trait.rs:    //~^ ERROR E0046
src/test/compile-fail/impl-wrong-item-for-trait.rs:    //~^ ERROR E0046
src/test/compile-fail/issue-23729.rs:            //~^ ERROR not all trait items implemented, missing: `Item` [E0046]
src/test/compile-fail/issue-23827.rs:    //~^ ERROR not all trait items implemented, missing: `Output` [E0046]
src/test/compile-fail/issue-24356.rs:            //~^ ERROR not all trait items implemented, missing: `Target` [E0046]

@shri3k
Copy link
Contributor Author

shri3k commented Aug 5, 2016

Oh damn, I thought I ran the unit test scripts too which showed no failed tests. I'll get to this when I get home tonight. Thank you for showing it in snippets.

@shri3k
Copy link
Contributor Author

shri3k commented Aug 6, 2016

Hopefully, I've covered all the test files that mentions this error.

r? @jonathandturner

@sophiajt
Copy link
Contributor

sophiajt commented Aug 6, 2016

Looks good!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 6, 2016

📌 Commit 9f09ee5 has been approved by jonathandturner

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Aug 7, 2016
Updates compiler error E0046 with new format

Addresses rust-lang#35209 as part of rust-lang#35233.
r? @jonathandturner

I've repeated the following in my code. If this is something not desirable then let me know if there's any process to make this any cleaner. Thank you.
```rust
missing_items.iter()
    .map(|name| name.to_string())
     .collect::<Vec<_>>().join("`, `"))
```
@@ -14,7 +14,9 @@ trait Foo {

struct Bar;

impl Foo for Bar {} //~ ERROR E0046
impl Foo for Bar {}
Copy link
Member

Choose a reason for hiding this comment

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

Trailing whitespace on this line.

@sanxiyn
Copy link
Member

sanxiyn commented Aug 7, 2016

@bors r-

@sophiajt
Copy link
Contributor

sophiajt commented Aug 7, 2016

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Aug 7, 2016

📌 Commit ed72c65 has been approved by jonathandturner

sophiajt pushed a commit to sophiajt/rust that referenced this pull request Aug 7, 2016
Updates compiler error E0046 with new format

Addresses rust-lang#35209 as part of rust-lang#35233.
r? @jonathandturner

I've repeated the following in my code. If this is something not desirable then let me know if there's any process to make this any cleaner. Thank you.
```rust
missing_items.iter()
    .map(|name| name.to_string())
     .collect::<Vec<_>>().join("`, `"))
```
sophiajt pushed a commit to sophiajt/rust that referenced this pull request Aug 7, 2016
Updates compiler error E0046 with new format

Addresses rust-lang#35209 as part of rust-lang#35233.
r? @jonathandturner

I've repeated the following in my code. If this is something not desirable then let me know if there's any process to make this any cleaner. Thank you.
```rust
missing_items.iter()
    .map(|name| name.to_string())
     .collect::<Vec<_>>().join("`, `"))
```
bors added a commit that referenced this pull request Aug 7, 2016
@bors bors merged commit ed72c65 into rust-lang:master Aug 7, 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.

None yet

6 participants