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
After checking real error messages from the Rust compiler, I feel more negative about this idea. For example, it seems sometimes it's a duplication of the (primary) label:
error[E0277]: `()` is not an iterator
--> $DIR/conservative_impl_trait.rs:3:33
|
LL | fn will_ice(something: &u32) -> impl Iterator<Item = &u32> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ `()` is not an iterator
|
= help: the trait `Iterator` is not implemented for `()`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
and very often the text on the primary label is missing:
In either case, they could have just put the full text on the primary label and omit the main message (as we did in asai). I therefore think it's not really useful. I also have not heard any strong support of this feature yet. Closing this as "not planned" until someone complains.
To improve interoperability with Rust-style error messages, I proposed adding an optional title or summary.
Reporter API changes:
title/summary
field.default_title/default_summary
.title/summary
argument when appropriate.Handler changes:
error[code]
aserror[code]: summary
.summary: explanation
.I don't know whether
summary
ortitle
is better. I'm leaning towardssummary
.The text was updated successfully, but these errors were encountered: