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

Compilation error: type annotations needed for Box<_> #137

Open
sigurd4 opened this issue Nov 19, 2024 · 3 comments
Open

Compilation error: type annotations needed for Box<_> #137

sigurd4 opened this issue Nov 19, 2024 · 3 comments

Comments

@sigurd4
Copy link

sigurd4 commented Nov 19, 2024

Cannot compile sinuous.

error[E0282]: type annotations needed for `Box<_>`
  --> /home/sigurd/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.28/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |

I guess wether or not you get away with type inference here depends on the rust version

@sigurd4
Copy link
Author

sigurd4 commented Nov 19, 2024

I'm sorry, just realized this is an error in a dependency, not sinuous. Moved to here.

@sigurd4
Copy link
Author

sigurd4 commented Nov 19, 2024

According to this comment, running cargo update in the workspace before building solves this. It's an install script issue, not a dependency issue.

Tried installing manually by cloning the repo and doing cargo install and it worked fine right out of the box.

@sigurd4 sigurd4 reopened this Nov 19, 2024
@sigurd4
Copy link
Author

sigurd4 commented Nov 19, 2024

Adding the line

cargo update

before

cargo build --release --locked --target-dir=target

in the PKGBUILD file belonging to the aur works! Got it to work by cloning the aur git repo, adding the line, then running makepkg.

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

No branches or pull requests

1 participant