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

Support unstable-less nightly #121

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

thenorili
Copy link
Contributor

This change attempts to put unstable features behind an opt-in feature flag as requested by issue #120. Unstable lints and compile_test.rs are both gated by this feature which is added unconditionally to all CI that touches more than just stable.

As expressed in issue #120, I have some concerns about needing to gate compile_test.rs behind feature = "unstable". I'm not certain that this unstable-less nightly eyre will work in production due to the reason that compile_test.rs fails: three of our dependencies, anyhow, thiserror, and proc-macro, all use a test for a nightly toolchain to gate unstable features. Maybe I'm wrong though and this change is sufficient!

@thenorili
Copy link
Contributor Author

oh wow, it looks like public_in_private's been merged on stable!

rust-lang/rfcs#3516

RFC #3516 has been merged and the public in private changes are on
stable. It's tripping clippy on stable, so let's fully remove it from
our codebase.
This change attempts to put unstable features behind an opt-in feature
flag as requested by issue eyre-rs#120. Unstable lints and compile_test.rs are
both gated by this feature which is added unconditionally to all CI
that touches more than just stable.

As expressed in issue eyre-rs#120, I have some concerns about *needing* to gate
compile_test.rs behind feature = "unstable". I'm not certain that this
unstable-less nightly eyre will work in production due to the reason
that compile_test.rs fails: three of our dependencies, anyhow,
thiserror, and proc-macro, all use a test for a nightly toolchain to
gate unstable features. Maybe I'm wrong though and this change is
sufficient!
@thenorili
Copy link
Contributor Author

I rebased to my other PR to get rid of the clippy fail, we can remove that before pushing if we want to send this first.

@RalfJung
Copy link

RalfJung commented May 6, 2024

Cc rust-lang/rust#120804

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