4
Better suggestions when user tries to collect into an unsized `[_]` by compiler-...
source link: https://github.com/rust-lang/rust/pull/91443
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
- Extend the predicate on
rustc_on_unimplemented
to support substitutions like note, label, etc (i.e. treat it as aOnUnimplementedFormatString
) so we can have slightly more generalrustc_on_unimplemented
special-cases. - Add a
rustc_on_unimplemented
if we fail onFromIterator<A> for [A]
which happens when we don't explicitly collect into avec<A>
, but then pass the return from a.collect
call into something that takes a slice.
Fixes #91423
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK