Disallow default_value and required for Option - #88
Conversation
Kerollmops
commented
Apr 2, 2018
Tests passes on |
TeXitoi
left a comment
There was a problem hiding this comment.
Tests fails with cargo test --features nightly. I can't look at it now.
TeXitoi
commented
Apr 2, 2018
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/ |
TeXitoi
commented
Apr 2, 2018
I've said in 0.2 that I can break compilation for better error handling, thus no major version change for that. |
TeXitoi
commented
Apr 2, 2018
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? |
TeXitoi
commented
Apr 2, 2018
Required is also meaningless with option. |
| @@ -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) | |||
default_value and required for Optiondtolnay
commented
Apr 2, 2018
Thanks for the ping. I filed rust-lang/rust#49596 to follow up. |
TeXitoi
commented
Apr 6, 2018
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) | |||
No description provided.