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

Don't generic unneeded GenericExpectation code #225

Merged
merged 2 commits into from
Nov 3, 2020
Merged

Conversation

asomers
Copy link
Owner

@asomers asomers commented Nov 3, 2020

We had been generating it, but not calling it, for non-generic methods
of generic structs.

We had been generating it, but not calling it, for non-generic methods
of generic structs.
Temporarily downgrade rustc nightly during CI minver to workaround a
Rustc bug.
rust-lang/rust#78660
@asomers asomers merged commit 8c3bd29 into master Nov 3, 2020
@asomers asomers deleted the unneeded_generic branch November 3, 2020 03:57
asomers added a commit that referenced this pull request Nov 3, 2020
It turns out that it wasn't necessary.  PR #225 was sufficient to fix
the issue.  And #226 is awkward, because it can result in the expect_
methods having fewer generic parameters than the original methods.
Worse, sometimes mockall will generate code that fails to compile,
because the Where clauses reference generic parameters that aren't
there.
@asomers asomers mentioned this pull request Nov 3, 2020
asomers added a commit that referenced this pull request Nov 3, 2020
It turns out that it wasn't necessary.  PR #225 was sufficient to fix
the issue.  And #226 is awkward, because it can result in the expect_
methods having fewer generic parameters than the original methods.
Worse, sometimes mockall will generate code that fails to compile,
because the Where clauses reference generic parameters that aren't
there.
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