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

Bump guard version to fix box_syntax error #64

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

deejayem
Copy link

@deejayem deejayem commented Jul 3, 2023

With the lastest version of the rust compiler, I am unable to build ea. The error is as follows (but I removed the duplicates that only differ by line number):

Checking guard v0.5.1
error: `box_syntax` has been removed
--> /Users/djm/.cargo/registry/src/index.crates.io-6f17d22bba15001f/guard-0.5.1/src/lib.rs:426:20
|
426 |         let foo = (box 42, [1, 2, 3]);
|                    ^^^^^^
|
help: use `Box::new()` instead
|
426 |         let foo = (Box::new(42), [1, 2, 3]);
|                    ~~~~~~~~~~~~
...
error: could not compile `guard` (lib) due to 4 previous errors

This is caused by rust-lang/rust#108471

This is fixed in guard 0.5.2.

I also had to fix a (seemingly) unrelated compilation issue to get it to compile, but I'll raise a separate PR for that.

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.

1 participant