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

Rewrite #[derive(QueryableByName)] in derives2 #1531

Merged
merged 1 commit into from
Feb 4, 2018

Conversation

sgrif
Copy link
Member

@sgrif sgrif commented Feb 3, 2018

Since QueryableByName is one of the more recently written derives, it
should have been a really straightforward port. Unfortunately, the
tests for this derive hit multiple rustc bugs

I love what we were able to do with the error message here. We could
even go so far as to have the help lines point at the struct itself
for the table_name annotation if we want to.

I also much prefer the workaround for
rust-lang/rust#47311 in this PR to the one I
did in #1529. I'll need to update that PR if this is merged first.

@sgrif sgrif requested a review from a team February 3, 2018 15:06
@sgrif sgrif force-pushed the sg-rewrite-queryable-by-name branch 2 times, most recently from ecea8fe to dac190a Compare February 3, 2018 22:46
Since `QueryableByName` is one of the more recently written derives, it
should have been a really straightforward port. Unfortunately, the
tests for this derive hit multiple rustc bugs

- rust-lang/rust#47983
- rust-lang/rust#47311

I love what we were able to do with the error message here. We could
even go so far as to have the `help` lines point at the struct itself
for the `table_name` annotation if we want to.

I also much prefer the workaround for
rust-lang/rust#47311 in this PR to the one I
did in #1529. I'll need to update that PR if this is merged first.
@sgrif sgrif force-pushed the sg-rewrite-queryable-by-name branch from dac190a to 1d4bf99 Compare February 4, 2018 12:45
@sgrif sgrif mentioned this pull request Feb 4, 2018
@sgrif sgrif merged commit 1d4bf99 into master Feb 4, 2018
@sgrif sgrif deleted the sg-rewrite-queryable-by-name branch February 4, 2018 22:13
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.

1 participant