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

Fix mocking methods with types including a super:: component #137

Merged
merged 1 commit into from
May 31, 2020

Conversation

asomers
Copy link
Owner

@asomers asomers commented May 31, 2020

Examples of methods that would be mocked incorrectly include:

fn foo(&self, x: [super::T]);
fn bar(&self) -> (super::T, i32);

This is a bug that was introduced by
697d341. That revision correctly
handled super when it appeared in Path and TraitObject types, but
not more complicated types.

Examples of methods that would be mocked incorrectly include:
```
fn foo(&self, x: [super::T]);
fn bar(&self) -> (super::T, i32);
```

This is a bug that was introduced by
697d341.  That revision correctly
handled `super` when it appeared in `Path` and `TraitObject` types, but
not more complicated types.
@asomers asomers merged commit 8a439f7 into master May 31, 2020
@asomers asomers deleted the supersuperfy2 branch May 31, 2020 16:04
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