diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-08-21 03:17:47 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-08-28 22:53:02 +0000 |
| commit | b013a3ddf0060b62ee8050e241f80d024c48cc59 (patch) | |
| tree | 3ae6340d863298cf186ac746cf3445a64ac95644 /compiler/rustc_trait_selection/src/lib.rs | |
| parent | 100fde5246bf56f22fb5cc85374dd841296fce0e (diff) | |
| download | rust-b013a3ddf0060b62ee8050e241f80d024c48cc59.tar.gz rust-b013a3ddf0060b62ee8050e241f80d024c48cc59.zip | |
Emit specific message for `time<0.3.35` inference failure
``` error[E0282]: type annotations needed for `Box<_>` --> ~/.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 | = note: this is an inference error on crate `time` caused by a change in Rust 1.80.0; update `time` to version `>=0.3.35` ``` Partially address #127343.
Diffstat (limited to 'compiler/rustc_trait_selection/src/lib.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_trait_selection/src/lib.rs b/compiler/rustc_trait_selection/src/lib.rs index 1bd66266936..c98d6c5f1df 100644 --- a/compiler/rustc_trait_selection/src/lib.rs +++ b/compiler/rustc_trait_selection/src/lib.rs @@ -19,6 +19,7 @@ #![feature(assert_matches)] #![feature(associated_type_defaults)] #![feature(box_patterns)] +#![feature(cfg_version)] #![feature(control_flow_enum)] #![feature(extract_if)] #![feature(if_let_guard)] |
