about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-08-21 03:17:47 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-08-28 22:53:02 +0000
commitb013a3ddf0060b62ee8050e241f80d024c48cc59 (patch)
tree3ae6340d863298cf186ac746cf3445a64ac95644 /compiler/rustc_span/src
parent100fde5246bf56f22fb5cc85374dd841296fce0e (diff)
downloadrust-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_span/src')
-rw-r--r--compiler/rustc_span/src/symbol.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs
index 2957105288b..7a544d7c837 100644
--- a/compiler/rustc_span/src/symbol.rs
+++ b/compiler/rustc_span/src/symbol.rs
@@ -1896,6 +1896,7 @@ symbols! {
         three_way_compare,
         thumb2,
         thumb_mode: "thumb-mode",
+        time,
         tmm_reg,
         to_owned_method,
         to_string,