Skip to content

Reject generics explicitly for #[pyclass]#503

Merged
kngwyu merged 1 commit intoPyO3:masterfrom
kngwyu:reject-generics
Jun 6, 2019
Merged

Reject generics explicitly for #[pyclass]#503
kngwyu merged 1 commit intoPyO3:masterfrom
kngwyu:reject-generics

Conversation

@kngwyu
Copy link
Member

@kngwyu kngwyu commented Jun 4, 2019

As per the discussion in #502, I tried to improve the error message for pyclasses with generic parameters.
In this PR, I also introduced the use of trybuild, which is a great library to test compile error messages for proc-macro functions.

@kngwyu kngwyu mentioned this pull request Jun 4, 2019
@kngwyu kngwyu force-pushed the reject-generics branch from 707e473 to 35f5301 Compare June 5, 2019 09:46
Copy link
Member

@konstin konstin left a comment

Choose a reason for hiding this comment

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

Using trybuild is really cool! The code changes look good, but we need to fix ci in some way before merging this.

@kngwyu
Copy link
Member Author

kngwyu commented Jun 5, 2019

I tried #[cfg(testkcovstopmarker)] for now

@kngwyu
Copy link
Member Author

kngwyu commented Jun 6, 2019

Now appveyor fails... 😢

@kngwyu kngwyu merged commit f2a7c64 into PyO3:master Jun 6, 2019
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.

2 participants