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

error[E0282]: type annotations needed for Box<_> #693

Closed
gc-victor opened this issue Jul 25, 2024 · 4 comments
Closed

error[E0282]: type annotations needed for Box<_> #693

gc-victor opened this issue Jul 25, 2024 · 4 comments
Labels
C-duplicate Category: exact duplicate

Comments

@gc-victor
Copy link

After updating Rust to version 1.8.0, the following error appears:

error[E0282]: type annotations needed for `Box<_>`
  --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.34/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

For more information about this error, try `rustc --explain E0282`
@the-emerald
Copy link

Updating time to 0.3.36 (from 0.3.34) fixed it for me!

@Mouwrice
Copy link

Updating time to 0.3.36 (from 0.3.34) fixed it for me!

Can confirm! Had the exact same situation and solution.

fuzzypixelz added a commit to fuzzypixelz/zenoh that referenced this issue Jul 25, 2024
fuzzypixelz added a commit to fuzzypixelz/zenoh that referenced this issue Jul 25, 2024
Mallets added a commit to eclipse-zenoh/zenoh that referenced this issue Jul 25, 2024
* Resolve `clippy::doc-lazy-continuation` errors

* Keep never-constructed logger interceptor

* Fix `target_pointer_width` usage

* Allow unexpected `doc_auto_cfg` flag

* Ignore interior mutability of `Resource`

* Fix typo

* Upgrade `time@0.3.28` to `time@0.3.36`

See time-rs/time#693

* Fix `unused_variables` and `unused_imports` errors for `shared-memory`

* Resolve more `clippy::doc-lazy-continuation` errors

* Update zenoh/src/net/routing/interceptor/mod.rs

---------

Co-authored-by: Luca Cominardi <luca.cominardi@gmail.com>
@jhpratt
Copy link
Member

jhpratt commented Jul 25, 2024

This was previous raised in #681, #685, and #689.

@jhpratt jhpratt closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
@jhpratt jhpratt added the C-duplicate Category: exact duplicate label Jul 25, 2024
fuzzypixelz added a commit to fuzzypixelz/zenoh that referenced this issue Jul 26, 2024
fuzzypixelz added a commit to fuzzypixelz/zenoh that referenced this issue Jul 26, 2024
fuzzypixelz added a commit to fuzzypixelz/zenoh that referenced this issue Jul 26, 2024
Mallets pushed a commit to eclipse-zenoh/zenoh that referenced this issue Jul 26, 2024
* Allow unexpected `doc_auto_cfg` flag

* Keep never-constructed logger interceptor

* Ignore interior mutability of `Resource`

* Fix typo

* Resolve `clippy::doc-lazy-continuation` errors

* Upgrade `time@0.3.28` to `time@0.3.36`

See time-rs/time#693
orhun added a commit to orhun/rustypaste that referenced this issue Jul 27, 2024
lslezak added a commit to agama-project/agama that referenced this issue Jul 29, 2024
## Problem

- Compilation fails in CI because of and old `time` crate (see
time-rs/time#693)
- OBS uses different crate versions than in Git

## Solution

- Update the crates using `cargo update`
- Disable automatic update in the OBS service file
zydou pushed a commit to zydou/arti that referenced this issue Jul 29, 2024
This avoids CI failures like this
  https://gitlab.torproject.org/nickm/arti/-/jobs/617654
arising from situations like this
  cargo-audit install fails with rust 1.80
    rustsec/rustsec#1217
  error[E0282]: type annotations needed for Box<_>
    time-rs/time#693

IMO we should pin many of the other images too but I suspect that may
be controversial.  I'm hoping that pinning this one to get CI working
is uncontroversial (perhaps only on a temporary basis).

The other way to solve this would be to remove --locked which IMO is
going in the wrong direction, by exposing us to more rather than fewer
uncontrolled inputs from our upstreams.
dyc3 pushed a commit to dyc3/steamguard-cli that referenced this issue Aug 2, 2024
seeing some time related failure 

```
error[E0282]: type annotations needed for `Box<_>`
  --> /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.22/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++
```

has been addressed with 0.3.36,
time-rs/time#693

Signed-off-by: Rui Chen <rui@chenrui.dev>
jkcoxson added a commit to jkcoxson/leptonic that referenced this issue Aug 5, 2024
Fixes the issue described at time-rs/time#693 that currently stops leptonic from building.
acheroncrypto added a commit to solana-playground/solana-playground that referenced this issue Aug 7, 2024
CI fails due to breakage in `rustc 1.80`, see time-rs/time#693
amarshall added a commit to amarshall/ra_mp64_srm_convert that referenced this issue Aug 22, 2024
Otherwise build fails on newer Rust with

> error[E0282]: type annotations needed for Box<_>

See time-rs/time#693.
@liudonghua123
Copy link

I have the similar issues when build a tauri app on macos. It's strange that the tauri app build successfully on linux and macos, but not on macos.

I also noticed that it seems Compiling tao logging appears on macos building logs, but not on linux.

See https://github.com/liudonghua123/pxt-microbit-app/actions/runs/10517054766/job/29140512953.

pieterdd added a commit to pieterdd/RcloneShuttle that referenced this issue Aug 24, 2024
@time-rs time-rs locked and limited conversation to collaborators Aug 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-duplicate Category: exact duplicate
Projects
None yet
Development

No branches or pull requests

5 participants