sinuous icon indicating copy to clipboard operation
sinuous copied to clipboard

Compilation error: type annotations needed for `Box<_>`

Open sigurd4 opened this issue 1 year ago • 3 comments

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 avatar Nov 19 '24 16:11 sigurd4

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

sigurd4 avatar Nov 19 '24 16:11 sigurd4

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 avatar Nov 19 '24 16:11 sigurd4

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.

sigurd4 avatar Nov 19 '24 17:11 sigurd4

Sorry I never replied. This one a rare occurence of a new version of the rust compiler breaking a dependency. This should have been fixed a long time ago now.

abusch avatar Nov 30 '25 03:11 abusch