-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Clap derive expansion no longer works on stable #79503
Comments
Weirdly, when I use my mac to test this locally, it works.
NOTE: macos stable fails on CI, so I don't think this is an OS issue. On EC2, it fails with the above error from the CI:
|
Pinging @petrochenkov because I suspect this is an issue with macro expansion. I tried Which is also the reason I couldn't generate a minimal reproducible example. I have no idea what's causing this. |
This works on 1.47 and breaks on 1.48. |
searched nightlies: from nightly-2020-07-11 to nightly-2020-11-28 bisected with cargo-bisect-rustc v0.5.2Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc -v --script ./test.sh --preserve --start 2020-07-11 where test.sh is #!/bin/sh
cargo test -p clap_derive --test nested |
cc @Aaron1011 - #75800 broke clap. |
This is due to a bug in how clap uses I've opened clap-rs/clap#2231 to fix the issue |
@pksunkara: Do you know if this test was failing on nightlies prior to the stable release that broke this? |
@Aaron1011 no, it was broken in #75800: #79503 (comment). That searched nightlies, not stable releases. |
I mean, did the Clap CI tests start failing on nightly after that rust PR was merged? |
Doesn't look like it. See this job, https://github.com/clap-rs/clap/pull/2211/checks?check_run_id=1399409188 |
To see a passing nightly CI run, check this, https://github.com/clap-rs/clap/runs/1393825395 |
I am closing this since the regression is not one. It looks like the original PR did a crater run, but the bugged code was in a test file. Thanks for help @Aaron1011 I am not sure why one of the nightlies wasn't failing, but that's a separate issue altogether. |
Code
Clap has the following test at
clap_derive/tests/nested.rs
:As you can see from the latest master CI, it fails to compile on stable
Version it worked on
It most recently worked on: Successfully compiles and runs on 1.46.0
Version with regression
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: