-
Notifications
You must be signed in to change notification settings - Fork 4
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
Guard does not build anymore on 1.70 #10
Comments
Thanks for the report. This crate isn't needed anymore since the feature is in rust, but it's good to keep it building. I've removed |
Thank you for the work. I think the crate is still useful to remain compatible with older versions of Rust. 1.65 is only a hair more than 6 months old, so e.g. debian bookworm ships with 1.63. Also because frankly it works just fine and it's not really worth updating. I've just done that in a custom codebase, and while rust-analyzer can inline macros they have to be inlined one by one and the formatting is completely borked, and rust-analyzer is not currently able to format let-else statements. In hindsight I should have just search and replaced the I assume the breakage despite use being behind both cfg and |
I'm unsure about this. You could argue that it's a stable regression since the code compiled before. But on 1.69, you get a clear warning even with the feature gate: https://rust.godbolt.org/z/6d916faE1 So I'm not sure how else they could really be expected to phase it out. |
While that's technically true, the warning is only visible when compiling the problematic package directly, it does not show up when the warning is triggered by a dependency (which would explain why I never noticed I guess). And the biggest issue to me is that why somewhat understandable here it breaks compilation even when gated out by two different cfgs which is quite annoying. |
Well, we could report it, the worst that happens is it's closed as a
misunderstanding!
…On Tue, Jun 6, 2023 at 1:56 AM xmo-odoo ***@***.***> wrote:
I'm unsure about this. You could argue that it's a stable regression since
the code compiled before. But on 1.69, you get a clear warning even with
the feature gate: rust.godbolt.org/z/6d916faE1 So I'm not sure how else
they could really be expected to phase it out.
While that's technically true, the warning is only visible when compiling
the problematic package directly, it does not show up when the warning is
triggered by a dependency (which would explain why I never noticed I guess).
And the biggest issue to me is that why somewhat understandable here it
breaks compilation even when gated out by two different cfgs which is quite
annoying.
—
Reply to this email directly, view it on GitHub
<#10 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALPH2Y5DHAOMMBQWNZJWDXJ3BAZANCNFSM6AAAAAAYX5ENKA>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Heya, I don't know if you maintain this much anymore, but it fails to build on 1.70: Rust removed support for
box_syntax
(rust-lang/rust#108471).guard only uses it in a single test gated behind
cfg(nightly)
so it should not be an issue, but it is:The text was updated successfully, but these errors were encountered: