You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
regression: type annotations needed for Box<_> #127343
Mostly reverse-dependencies of the time crate (before time-rs/time@5b0c627, released in 0.3.35). My sense is there's probably nothing to do here, but lots of crates have older version of time in Cargo.lock. Nominating for libs-api to approve the wide spectrum of regressions. (Caused by #99969).
[INFO] [stdout] error[E0282]: type annotations needed for `Box<_>`
[INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.20/src/format_description/parse/mod.rs:83:9
[INFO] [stdout] |
[INFO] [stdout] 83 | let items = format_items
[INFO] [stdout] | ^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 86 | Ok(items.into())
[INFO] [stdout] | ---- type must be known at this point
[INFO] [stdout] |
[INFO] [stdout] help: consider giving `items` an explicit type, where the placeholders `_` are specified
[INFO] [stdout] |
[INFO] [stdout] 83 | let items: Box<_> = format_items
[INFO] [stdout] | ++++++++
[INFO] [stdout]
[INFO] [stdout]
We discussed this regression in today's @rust-lang/libs-api team meeting, and agree there's nothing to change on Rust's end. Those repos that have an old version of time in a lockfile will need to update that.
I would love if someone were interested in cataloguing all the "type annotations needed" type inference breakages resulting from the addition of a trait impl through the history of the standard library, and think about building static analysis that could forewarn about code that is at risk of becoming ambiguous (e.g. a += b.as_ref()). It may be something that widely used crates want to enforce in CI.
Reacted by apiraino, Keith Hall, Christina Sørensen, Michael Steinbaugh, Weihang Lo, acheron, henrispriet, zero, Alejandro Osornio, David Gomes and 17 more
Reacted by Kornel, Martin Hořeňovský, Neil Semmel, Chaoses-Ib, Wareya, Jubilee, Madeline, analog-hors, styx, Rodrigo and 47 more
Reacted by soc
Reacted by Tau, Donald King and GalaxySnail
Reacted by cyqsimon, Sander Saares, henrispriet, Artur Jakubiec and Artur J.
Reacted by Christina Sørensen, Kyle L. Davis, Christer Jensen, simone viozzi, Tengku Izdihar, Ariel Richtman, Florian Warzecha, Gaurav Juvekar, Roald Storm, Matt Jolly and 15 more
Activity
dtolnay commentedon Jul 9, 2024
We discussed this regression in today's @rust-lang/libs-api team meeting, and agree there's nothing to change on Rust's end. Those repos that have an old version of
timein a lockfile will need to update that.I would love if someone were interested in cataloguing all the "type annotations needed" type inference breakages resulting from the addition of a trait impl through the history of the standard library, and think about building static analysis that could forewarn about code that is at risk of becoming ambiguous (e.g.
a += b.as_ref()). It may be something that widely used crates want to enforce in CI.Update time from 0.3.27 to 0.3.36
sys-process/bottom: Patch to use newer time
sys-process/bottom: Patch to use newer time
cyqsimon commentedon Jul 26, 2024
Backward compatibility is difficult =(
195 remaining items
cargo update for time crate to build on rust 1.80.0
Run cargo update
Update time to 0.3.36
Update time to 0.3.36
Update time to 0.3.36
Fix build with rust 1.80
Auto merge of rust-lang#129249 - estebank:useless-into, r=<try>
Auto merge of rust-lang#129249 - estebank:useless-into, r=<try>
Auto merge of rust-lang#129249 - estebank:useless-into, r=<try>
update time to compile with Rust ≥1.80
fix: update time-rs crate (#254)
Fix `time` compilation failure (#102)
Update `time` package in lock to 0.3.36, because of rust-lang/rust#12…
cargo: bump time crate (#1354)
Merge pull request #1 from Samuel-Ricardo/v2