-
Notifications
You must be signed in to change notification settings - Fork 152
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
Disallow default_value
and required
for Option
#88
Conversation
Tests passes on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests fails with cargo test --features nightly
. I can't look at it now.
Please add a line in the changelog |
We should probably bump the major number because this is not a backward compatible update, it will break current compiling code. https://semver.org/ |
I've said in 0.2 that I can break compilation for better error handling, thus no major version change for that. |
The failing test also fail on master. Maybe syn and quote are not yet synchronised with nightly. Only the first doc comment is given by syn. rust-lang/rust#49545 may be related to this. I didn't understand the problem I do t know where reporting the issue. Maybe syn? @dtolnay any idea? |
Required is also meaningless with option. |
CHANGELOG.md
Outdated
@@ -1,3 +1,7 @@ | |||
# v0.2.7 (unreleased) | |||
|
|||
* Fail compilation when using `default_value` with `Option` ([#88](https://github.com/TeXitoi/structopt/pull/88)) by [@Kerollmops](https://github.com/Kerollmops) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not updated accordingly.
default_value
and required
for Option
Thanks for the ping. I filed rust-lang/rust#49596 to follow up. |
Fixed in nightly for our case. Thanks for the contribution and your patience. |
@@ -1,3 +1,7 @@ | |||
# v0.2.7 (unreleased) | |||
|
|||
* Fail compilation when using `default_value` and `required` with `Option` ([#88](https://github.com/TeXitoi/structopt/pull/88)) by [@Kerollmops](https://github.com/Kerollmops) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/and/or
😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amended
No description provided.